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

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

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