13 lines
255 B
Nix
13 lines
255 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
pkgs.runCommandNoCC "git-only-push"
|
||
|
{
|
||
|
nativeBuildInputs = [ pkgs.buildPackages.shellcheck ];
|
||
|
buildInputs = [ pkgs.bash ];
|
||
|
src = ./git-only-push.sh;
|
||
|
}
|
||
|
''
|
||
|
shellcheck "$src"
|
||
|
install -Dm755 "$src" "$out/bin/git-only-push"
|
||
|
''
|