Merge pull request #292669 from JulienMalka/cowsay-finalattrs
This commit is contained in:
commit
3196f72254
1 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
{ lib, stdenv, perl, fetchFromGitHub, fetchpatch, makeWrapper, nix-update-script, testers, cowsay }:
|
||||
{ lib, stdenv, perl, fetchFromGitHub, fetchpatch, makeWrapper, nix-update-script, testers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "cowsay";
|
||||
version = "3.7.0";
|
||||
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "cowsay-org";
|
||||
repo = "cowsay";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-t1grmCPQhRgwS64RjEwkK61F2qxxMBKuv0/DzBTnL3s=";
|
||||
};
|
||||
|
||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
|||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
package = cowsay;
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "cowsay --version";
|
||||
};
|
||||
};
|
||||
|
@ -45,9 +45,9 @@ stdenv.mkDerivation rec {
|
|||
meta = with lib; {
|
||||
description = "A program which generates ASCII pictures of a cow with a message";
|
||||
homepage = "https://cowsay.diamonds";
|
||||
changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${version}";
|
||||
changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${finalAttrs.version}";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ rob anthonyroussel ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue