update & alias
just `gomod2nix` should work now
This commit is contained in:
parent
0928173cce
commit
fd97122894
3 changed files with 25 additions and 23 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -28,11 +28,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745875161,
|
"lastModified": 1753096219,
|
||||||
"narHash": "sha256-0YkWCS13jpoo3+sX/3kcgdxBNt1VZTmvF+FhZb4rFKI=",
|
"narHash": "sha256-MaaWYgN/nia7xJcOYLBtPk+cFo7X2zEM1d9xIGPQrLU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "gomod2nix",
|
"repo": "gomod2nix",
|
||||||
"rev": "2cbd7fdd6eeab65c494cc426e18f4e4d2a5e35c0",
|
"rev": "be828766411cad04c194c8f714d46aa2b2596362",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -43,11 +43,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750134718,
|
"lastModified": 1752950548,
|
||||||
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
|
"narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
|
"rev": "c87b95e25065c028d31a94f06a62927d18763fdf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -68,11 +68,11 @@
|
||||||
"source": {
|
"source": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748001809,
|
"lastModified": 1751402681,
|
||||||
"narHash": "sha256-yvcPYAZDjJmmo7Qsj+bQMM/Qpg7Qx/H9DwoxwrCYExQ=",
|
"narHash": "sha256-q0qz1sgvV2A6ZJu5PI9d7CCScmGfen3OPeNVqyMIrxg=",
|
||||||
"owner": "laravel-ls",
|
"owner": "laravel-ls",
|
||||||
"repo": "laravel-ls",
|
"repo": "laravel-ls",
|
||||||
"rev": "25df126adea6b96d788f76b55387048e2f62e44c",
|
"rev": "934a19c41bf260c106cdfba9daf93803e465cf5a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ schema = 3
|
||||||
[mod."github.com/inconshreveable/mousetrap"]
|
[mod."github.com/inconshreveable/mousetrap"]
|
||||||
version = "v1.1.0"
|
version = "v1.1.0"
|
||||||
hash = "sha256-XWlYH0c8IcxAwQTnIi6WYqq44nOKUylSWxWO/vi+8pE="
|
hash = "sha256-XWlYH0c8IcxAwQTnIi6WYqq44nOKUylSWxWO/vi+8pE="
|
||||||
|
[mod."github.com/laravel-ls/uri"]
|
||||||
|
version = "v0.0.1"
|
||||||
|
hash = "sha256-+lApunUUyViLotI2HZfuhdJkeZx6hFY4oLQzMe7Vgxw="
|
||||||
[mod."github.com/magiconair/properties"]
|
[mod."github.com/magiconair/properties"]
|
||||||
version = "v1.8.7"
|
version = "v1.8.7"
|
||||||
hash = "sha256-XQ2bnc2s7/IH3WxEO4GishZurMyKwEclZy1DXg+2xXc="
|
hash = "sha256-XQ2bnc2s7/IH3WxEO4GishZurMyKwEclZy1DXg+2xXc="
|
||||||
|
|
@ -50,8 +53,8 @@ schema = 3
|
||||||
version = "v0.2.0"
|
version = "v0.2.0"
|
||||||
hash = "sha256-UPJQN/TSg9CjRj0239EV9dbZTwe7grOCf8lFWMkqo8U="
|
hash = "sha256-UPJQN/TSg9CjRj0239EV9dbZTwe7grOCf8lFWMkqo8U="
|
||||||
[mod."github.com/spf13/afero"]
|
[mod."github.com/spf13/afero"]
|
||||||
version = "v1.11.0"
|
version = "v1.14.0"
|
||||||
hash = "sha256-+rV3cDZr13N8E0rJ7iHmwsKYKH+EhV+IXBut+JbBiIE="
|
hash = "sha256-d/ARtboq2myaDFI3p1rfCrrS0wtlp2TCbjyhBNWjSEc="
|
||||||
[mod."github.com/spf13/cast"]
|
[mod."github.com/spf13/cast"]
|
||||||
version = "v1.6.0"
|
version = "v1.6.0"
|
||||||
hash = "sha256-hxioqRZfXE0AE5099wmn3YG0AZF8Wda2EB4c7zHF6zI="
|
hash = "sha256-hxioqRZfXE0AE5099wmn3YG0AZF8Wda2EB4c7zHF6zI="
|
||||||
|
|
@ -92,8 +95,8 @@ schema = 3
|
||||||
version = "v0.28.0"
|
version = "v0.28.0"
|
||||||
hash = "sha256-kzSlDo5FKsQU9cLefIt2dueGUfz9XuEW+mGSGlPATGc="
|
hash = "sha256-kzSlDo5FKsQU9cLefIt2dueGUfz9XuEW+mGSGlPATGc="
|
||||||
[mod."golang.org/x/text"]
|
[mod."golang.org/x/text"]
|
||||||
version = "v0.14.0"
|
version = "v0.23.0"
|
||||||
hash = "sha256-yh3B0tom1RfzQBf1RNmfdNWF1PtiqxV41jW1GVS6JAg="
|
hash = "sha256-TiYX1K4DYpP1dEV06whOm43xyOntjrPFi+VAdncoeCY="
|
||||||
[mod."gopkg.in/ini.v1"]
|
[mod."gopkg.in/ini.v1"]
|
||||||
version = "v1.67.0"
|
version = "v1.67.0"
|
||||||
hash = "sha256-V10ahGNGT+NLRdKUyRg1dos5RxLBXBk1xutcnquc/+4="
|
hash = "sha256-V10ahGNGT+NLRdKUyRg1dos5RxLBXBk1xutcnquc/+4="
|
||||||
|
|
|
||||||
19
shell.nix
19
shell.nix
|
|
@ -13,14 +13,13 @@
|
||||||
),
|
),
|
||||||
mkGoEnv ? pkgs.mkGoEnv,
|
mkGoEnv ? pkgs.mkGoEnv,
|
||||||
gomod2nix ? pkgs.gomod2nix,
|
gomod2nix ? pkgs.gomod2nix,
|
||||||
}: let
|
}:
|
||||||
update_gomod2nix = pkgs.writeShellScriptBin "update_gomod2nix" ''
|
pkgs.mkShell {
|
||||||
${gomod2nix}/bin/gomod2nix --dir ${source} --outdir ./
|
buildInputs = [
|
||||||
|
gomod2nix
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
alias gomod2nix='${gomod2nix}/bin/gomod2nix --dir ${source} --outdir ./'
|
||||||
'';
|
'';
|
||||||
in
|
packages = [];
|
||||||
pkgs.mkShell {
|
}
|
||||||
packages = [
|
|
||||||
gomod2nix
|
|
||||||
update_gomod2nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue