diff options
author | enc0urage <127197575+enc0urage@users.noreply.github.com> | 2023-03-25 11:05:23 +0000 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-03-25 19:02:13 -0300 |
commit | 1a173c89426ab705aac55872740362bc1a0b6cfd (patch) | |
tree | 4074ec9826b1f156550f17e37ece2e55698808c9 /pkgs/tools/misc/cowsay | |
parent | 7d1420d5a971351b286f74ebde76bbe74c975023 (diff) |
cowsay: add COWPATH wrapper
Diffstat (limited to 'pkgs/tools/misc/cowsay')
-rw-r--r-- | pkgs/tools/misc/cowsay/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/cowsay/default.nix b/pkgs/tools/misc/cowsay/default.nix index 87457e0a63d95..62ae9994fff8a 100644 --- a/pkgs/tools/misc/cowsay/default.nix +++ b/pkgs/tools/misc/cowsay/default.nix @@ -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"}" ]; |