Skip to content

Commit 799b72d

Browse files
committed
setup perennial for nix development
1 parent c279330 commit 799b72d

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ __pycache__
3535

3636
# Compiled code supplement
3737
/peony-code.zip
38+
39+
# direnv
40+
.direnv

flake.nix

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
description = "A Flake for Applying Grackle to gokv";
3+
4+
inputs = {
5+
nixpkgs.url = "nixpkgs";
6+
};
7+
8+
outputs = {nixpkgs, ...}: let
9+
system = "x86_64-linux";
10+
in {
11+
devShells."${system}".default = let
12+
pkgs = import nixpkgs {
13+
inherit system;
14+
};
15+
grackle = pkgs.buildGoModule {
16+
name = "grackle";
17+
src = pkgs.fetchFromGitHub {
18+
owner = "mjschwenne";
19+
repo = "grackle";
20+
rev = "18dbbd313c299d74895f566aae028eeba62a699a";
21+
hash = "sha256-GDo3c3VbRl0FR7sJ2Cvmdau+rBRcxwb/sGAEwV5seFQ=";
22+
};
23+
vendorHash = "sha256-Wk2v0HSAkrzxHJvCfbw6xOn0OQ1xukvYjDxk3c2LmH8=";
24+
checkPhase = false;
25+
};
26+
in
27+
pkgs.mkShell {
28+
# create an environment with the required coq libraries
29+
packages = with pkgs; [
30+
# coq deps
31+
coqc
32+
33+
# grackle
34+
grackle
35+
];
36+
37+
shellHook = ''
38+
'';
39+
};
40+
};
41+
}

0 commit comments

Comments
 (0)