Refactor derivation definitions

This commit is contained in:
Kiana Sheibani 2024-02-09 22:44:24 -05:00
parent 51a6ae01e1
commit 81ca8af870
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
5 changed files with 2 additions and 10 deletions

View file

@ -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
View file

View 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
View file

0
python/bin/soe-python Normal file → Executable file
View file