23 lines
356 B
Nix
23 lines
356 B
Nix
|
{ 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 ]}
|
||
|
'';
|
||
|
}
|