3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #51488 from flokli/cowsay-cross

cowsay: fix cross
This commit is contained in:
Jörg Thalheim 2018-12-03 23:42:07 +00:00 committed by GitHub
commit 41af4a520c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {