Skip to content

Commit

Permalink
added git vendor commands to shell hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbel-arad committed Aug 18, 2024
1 parent b9c39bc commit c07944d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
src = self; #zcli;

nativeBuildInputs = with pkgs; [ go ];
vendorHash = "sha256-XRnhK5vakEniRsgeEyBR+8RNwRO92KC9AXXMaYPs7Qc=";
vendorHash = null;

installPhase = ''
mkdir -p $out/bin
Expand Down
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
perSystem = { config, pkgs, system, ... }: {
packages.default = (import ./default.nix { inherit pkgs self; });
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ got ];
nativeBuildInputs = with pkgs; [ go ];
shellHook = ''
go mod vendor
git add vendor/.
echo -e '\033[0;33mprepared vendor files\033[0m'
'';
};
};
};
Expand Down

0 comments on commit c07944d

Please sign in to comment.