File tree Expand file tree Collapse file tree 2 files changed +23
-36
lines changed Expand file tree Collapse file tree 2 files changed +23
-36
lines changed Original file line number Diff line number Diff line change 41
41
packages =
42
42
forAllSystems
43
43
( { pkgs } : rec {
44
- default = pkgs . callPackage ./modupdate.nix {
45
- self = self ;
46
- } ;
44
+ default = pkgs . callPackage ./modupdate.nix { } ;
47
45
48
46
# NOTE: Do not use this, it's just an example for my own use
49
47
container = pkgs . callPackage ./container.nix {
Original file line number Diff line number Diff line change 1
1
{
2
2
buildGoModule ,
3
3
lib ,
4
- self ,
5
- } : let
6
- gitRev =
7
- if ( self ? rev )
8
- then self . rev
9
- else "dirty" ;
10
- in
11
- buildGoModule {
4
+ } :
5
+ buildGoModule {
6
+ name = "modupdate" ;
7
+ src = builtins . path {
12
8
name = "modupdate" ;
13
- src = builtins . path {
14
- name = "modupdate" ;
15
- path = ./. ;
16
- filter = path : type :
17
- builtins . elem ( /. + path ) [
18
- ./go.mod
19
- ./go.sum
20
- ./main.go
21
- ./version.go
22
- ] ;
23
- } ;
24
- vendorSha256 = "sha256-XU4kLbEAPCL8mNk4omk2OIijKdiiAsJKBfoKkJJfHkI=" ;
9
+ path = ./. ;
10
+ filter = path : type :
11
+ builtins . elem ( /. + path ) [
12
+ ./go.mod
13
+ ./go.sum
14
+ ./main.go
15
+ ./version.go
16
+ ] ;
17
+ } ;
18
+ vendorSha256 = "sha256-XU4kLbEAPCL8mNk4omk2OIijKdiiAsJKBfoKkJJfHkI=" ;
25
19
26
- ldflags = [
27
- "-s"
28
- "-w"
29
- "-X 'main.version=${ self . shortRev or "" } '"
30
- "-X 'main.vcsCommit=${ gitRev } '"
31
- ] ;
20
+ ldflags = [ "-s" "-w" ] ;
32
21
33
- meta = with lib ; {
34
- description = "Tool to update direct dependencies in go.mod" ;
35
- homepage = "https://github.com/knightpp/modupdate" ;
36
- license = licenses . mit ;
37
- maintainers = with maintainers ; [ knightpp ] ;
38
- } ;
39
- }
22
+ meta = with lib ; {
23
+ description = "Tool to update direct dependencies in go.mod" ;
24
+ homepage = "https://github.com/knightpp/modupdate" ;
25
+ license = licenses . mit ;
26
+ maintainers = with maintainers ; [ knightpp ] ;
27
+ } ;
28
+ }
You can’t perform that action at this time.
0 commit comments