update & alias

just `gomod2nix` should work now
This commit is contained in:
Alan Daniels 2025-07-24 08:38:50 +10:00
parent 0928173cce
commit fd97122894
3 changed files with 25 additions and 23 deletions

View file

@ -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 = [];
}