nixpkgs/pkgs/by-name/co/cowsay/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.2 KiB
Nix
Raw Normal View History

2024-08-13 19:26:26 +00:00
{
lib,
fetchFromGitHub,
makeWrapper,
nix-update-script,
perl,
stdenv,
testers,
}:
2016-11-05 03:04:05 +00:00
2024-03-01 22:10:23 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "cowsay";
2024-12-09 11:32:09 +00:00
version = "3.8.4";
2023-01-08 21:32:18 +00:00
2024-08-13 19:26:26 +00:00
outputs = [
"out"
"man"
];
2016-11-05 03:04:05 +00:00
2021-05-25 15:29:37 +00:00
src = fetchFromGitHub {
2023-01-08 21:32:18 +00:00
owner = "cowsay-org";
repo = "cowsay";
2024-03-01 22:10:23 +00:00
rev = "v${finalAttrs.version}";
2024-12-09 11:32:09 +00:00
hash = "sha256-m3Rndw0rnTBLhs15KqokzIOWuYl6aoPqEu2MHWpXRCs=";
2016-11-05 03:04:05 +00:00
};
2023-03-25 11:05:23 +00:00
nativeBuildInputs = [ makeWrapper ];
2024-08-13 19:26:26 +00:00
2023-01-08 21:32:18 +00:00
buildInputs = [ perl ];
2021-05-25 15:29:37 +00:00
2024-08-13 19:26:26 +00:00
makeFlags = [ "prefix=${placeholder "out"}" ];
2023-03-25 11:05:23 +00:00
postInstall = ''
wrapProgram $out/bin/cowsay \
--suffix COWPATH : $out/share/cowsay/cows
'';
2023-01-08 21:32:18 +00:00
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
2024-03-01 22:10:23 +00:00
package = finalAttrs.finalPackage;
2023-01-08 21:32:18 +00:00
command = "cowsay --version";
};
};
2021-05-25 15:29:37 +00:00
meta = with lib; {
2016-11-05 03:04:05 +00:00
description = "Program which generates ASCII pictures of a cow with a message";
2023-01-08 21:32:18 +00:00
homepage = "https://cowsay.diamonds";
2024-03-01 22:10:23 +00:00
changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${finalAttrs.version}";
2021-05-25 15:29:37 +00:00
license = licenses.gpl3Only;
2018-08-15 18:21:16 +00:00
platforms = platforms.all;
2024-08-13 19:26:26 +00:00
maintainers = with maintainers; [
rob
anthonyroussel
];
2024-07-27 08:31:20 +00:00
mainProgram = "cowsay";
2016-11-05 03:04:05 +00:00
};
2024-03-01 22:10:23 +00:00
})