-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
54 lines (48 loc) · 1.26 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "A Flake for my Independent Study with Tej Chajed";
inputs = {
nixpkgs.url = "nixpkgs";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
goose = pkgs.buildGoModule {
name = "goose";
src = pkgs.fetchFromGitHub {
owner = "goose-lang";
repo = "goose";
rev = "a4f2f84193d34f56dd84fc623adc43a6441da1eb";
sha256 = "1b1dfa1qsv2h7hy5x20zhic2npr5gz1zp76m1lab4v490adxj2rx";
};
vendorHash = "sha256-HCJ8v3TSv4UrkOsRuENWVz5Z7zQ1UsOygx0Mo7MELzY=";
};
in
pkgs.mkShell {
# create an environment with the required coq libraries
packages = with pkgs; [
# Coq deps
coq
# Go deps
go
gopls
goose
# Protobuf deps
protobuf
protoc-gen-go
proto-contrib
protoscope
# nix helpers
# Should be able to update goose and grackle with `update-nix-fetchgit flake.nix`
pkgs.update-nix-fetchgit
pkgs.nix-prefetch-git
pkgs.nix-prefetch
];
shellHook = ''
'';
};
};
}