Skip to content

Commit

Permalink
Merge pull request #51488 from flokli/cowsay-cross
Browse files Browse the repository at this point in the history
cowsay: fix cross
  • Loading branch information
Mic92 committed Dec 3, 2018
2 parents d5b45b4 + fae81f3 commit 41af4a5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/tools/misc/cowsay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ stdenv.mkDerivation rec{

buildInputs = [ perl ];

postBuild = ''
substituteInPlace cowsay --replace "%BANGPERL%" "!${perl}/bin/perl" \
--replace "%PREFIX%" "$out"
'';

installPhase = ''
bash ./install.sh $out
mkdir -p $out/{bin,man/man1,share/cows}
install -m755 cowsay $out/bin/cowsay
ln -s cowsay $out/bin/cowthink
install -m644 cowsay.1 $out/man/man1/cowsay.1
ln -s cowsay.1 $out/man/man1/cowthink.1
install -m644 cows/* -t $out/share/cows/
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 41af4a5

Please sign in to comment.