23 lines
356 B
Nix
23 lines
356 B
Nix
|
{ stdenv
|
||
|
, lib
|
||
|
, bash
|
||
|
, makeWrapper
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "soe-bash";
|
||
|
version = "1.0";
|
||
|
|
||
|
src = ./.;
|
||
|
|
||
|
buildInputs = [ bash ];
|
||
|
nativeBuildInputs = [ makeWrapper ];
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
install -m555 soe-bash $out/bin
|
||
|
wrapProgram $out/bin/soe-bash \
|
||
|
--prefix PATH : ${lib.makeBinPath [ bash ]}
|
||
|
'';
|
||
|
}
|