19 lines
397 B
Nix
19 lines
397 B
Nix
{
|
|
cowsay,
|
|
ponysay,
|
|
lib,
|
|
makeWrapper,
|
|
stdenv,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "my-package";
|
|
version = "0.1.0";
|
|
src = ./.;
|
|
buildInputs = [makeWrapper];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp myscript.sh $out/bin/myscript.sh
|
|
chmod +x $out/bin/myscript.sh
|
|
wrapProgram $out/bin/myscript.sh \
|
|
--prefix PATH : ${lib.makeBinPath [cowsay ponysay]} '';
|
|
} |