-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathflake.nix
More file actions
43 lines (41 loc) · 1.14 KB
/
Copy pathflake.nix
File metadata and controls
43 lines (41 loc) · 1.14 KB
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
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
let
# Dear reader, for now I only have access to a Linux machine
supportedSystems = [
"x86_64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = with pkgs; [
go
gnumake
nsis
(buildGoModule rec {
pname = "goversioninfo";
version = "1.7.0";
subPackages = [ "cmd/goversioninfo" ];
src = pkgs.fetchFromGitHub {
owner = "josephspurrier";
repo = "goversioninfo";
rev = "v${version}";
sha256 = "sha256-P6e1hu9DY6gh7SBYIw2o5qLl9LD3u4FGdjxKmqtNGmg=";
};
vendorHash = "sha256-cbx+iq7uZWEfjyZ8wtEEso3S/3wTf/0o932YIaUvA0I=";
})
];
};
}
);
};
}