Skip to content

Commit 2f613ad

Browse files
committed
nix: update package for v0.2
1 parent 40c6ca6 commit 2f613ad

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

nix/package.nix

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
{
2-
self,
32
lib,
43
buildGoModule,
54
...
6-
}:
7-
buildGoModule {
8-
pname = "flint";
9-
version = "0.1.0";
5+
}: let
6+
fs = lib.fileset;
7+
version = "0.2.0";
8+
in
9+
buildGoModule {
10+
pname = "flint";
11+
inherit version;
1012

11-
src = builtins.path {
12-
path = self;
13-
name = "flint-src";
14-
};
13+
src = fs.toSource {
14+
root = ../.;
15+
fileset = fs.unions [
16+
../cmd
17+
../internal
18+
../vendor
19+
../go.mod
20+
../go.sum
21+
];
22+
};
1523

16-
vendorHash = "sha256-HVynSqH/6GnPutzEsASWAMd7H1veE1ps+MpADKKJEmU=";
24+
vendorHash = null;
1725

18-
ldflags = ["-s" "-w"];
26+
ldflags = ["-s" "-w" "-X main.version=${version}"];
1927

20-
meta = {
21-
description = "Stupid simple utility for linting your flake inputs";
22-
license = lib.licenses.mpl20;
23-
mainProgram = "flint";
24-
maintainers = [lib.maintainers.NotAShelf];
25-
};
26-
}
28+
meta = {
29+
description = "Stupid simple utility for linting your flake inputs";
30+
license = lib.licenses.mpl20;
31+
mainProgram = "flint";
32+
maintainers = [lib.maintainers.NotAShelf];
33+
};
34+
}

0 commit comments

Comments
 (0)