templates/fish/default.nix

23 lines
356 B
Nix
Raw Normal View History

2023-02-08 12:07:14 -05:00
{ stdenv
, lib
, fish
, makeWrapper
}:
stdenv.mkDerivation {
pname = "soe-fish";
version = "1.0";
src = ./.;
buildInputs = [ fish ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -m555 soe-fish $out/bin
wrapProgram $out/bin/soe-fish \
--prefix PATH : ${lib.makeBinPath [ fish ]}
'';
}