Refactor derivation definitions
This commit is contained in:
parent
51a6ae01e1
commit
81ca8af870
|
@ -1,7 +1,6 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, bash
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -11,12 +10,9 @@ stdenv.mkDerivation {
|
|||
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 ]}
|
||||
cp soe-bash $out/bin
|
||||
'';
|
||||
}
|
||||
|
|
0
bash/soe-bash
Normal file → Executable file
0
bash/soe-bash
Normal file → Executable file
|
@ -1,7 +1,6 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fish
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -11,12 +10,9 @@ stdenv.mkDerivation {
|
|||
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 ]}
|
||||
cp soe-fish $out/bin
|
||||
'';
|
||||
}
|
||||
|
|
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