Refactor derivation definitions
This commit is contained in:
parent
51a6ae01e1
commit
81ca8af870
|
@ -1,7 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, bash
|
, bash
|
||||||
, makeWrapper
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -11,12 +10,9 @@ stdenv.mkDerivation {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
buildInputs = [ bash ];
|
buildInputs = [ bash ];
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -m555 soe-bash $out/bin
|
cp soe-bash $out/bin
|
||||||
wrapProgram $out/bin/soe-bash \
|
|
||||||
--prefix PATH : ${lib.makeBinPath [ bash ]}
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
0
bash/soe-bash
Normal file → Executable file
0
bash/soe-bash
Normal file → Executable file
|
@ -1,7 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fish
|
, fish
|
||||||
, makeWrapper
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -11,12 +10,9 @@ stdenv.mkDerivation {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
buildInputs = [ fish ];
|
buildInputs = [ fish ];
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -m555 soe-fish $out/bin
|
cp soe-fish $out/bin
|
||||||
wrapProgram $out/bin/soe-fish \
|
|
||||||
--prefix PATH : ${lib.makeBinPath [ fish ]}
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
0
fish/soe-fish
Normal file → Executable file
0
fish/soe-fish
Normal file → Executable file
0
python/bin/soe-python
Normal file → Executable file
0
python/bin/soe-python
Normal file → Executable file
Loading…
Reference in a new issue