File tree Expand file tree Collapse file tree 1 file changed +26
-18
lines changed
Expand file tree Collapse file tree 1 file changed +26
-18
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments