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
19
shell.nix
19
shell.nix
|
|
@ -13,14 +13,13 @@
|
|||
),
|
||||
mkGoEnv ? pkgs.mkGoEnv,
|
||||
gomod2nix ? pkgs.gomod2nix,
|
||||
}: let
|
||||
update_gomod2nix = pkgs.writeShellScriptBin "update_gomod2nix" ''
|
||||
${gomod2nix}/bin/gomod2nix --dir ${source} --outdir ./
|
||||
}:
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
gomod2nix
|
||||
];
|
||||
shellHook = ''
|
||||
alias gomod2nix='${gomod2nix}/bin/gomod2nix --dir ${source} --outdir ./'
|
||||
'';
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
gomod2nix
|
||||
update_gomod2nix
|
||||
];
|
||||
}
|
||||
packages = [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue