cowsay: add COWPATH wrapper
This commit is contained in:
parent
7d1420d5a9
commit
1a173c8942
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, perl, fetchFromGitHub, fetchpatch, nix-update-script, testers, cowsay }:
|
||||
{ lib, stdenv, perl, fetchFromGitHub, fetchpatch, makeWrapper, nix-update-script, testers, cowsay }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cowsay";
|
||||
|
@ -22,8 +22,14 @@ stdenv.mkDerivation rec {
|
|||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ perl ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/cowsay \
|
||||
--suffix COWPATH : $out/share/cowsay/cows
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"prefix=${placeholder "out"}"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue