cowsay: replace rec by finalAttrs
This commit is contained in:
parent
98a0d85301
commit
1158bc4aac
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";
|
pname = "cowsay";
|
||||||
version = "3.7.0";
|
version = "3.7.0";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cowsay-org";
|
owner = "cowsay-org";
|
||||||
repo = "cowsay";
|
repo = "cowsay";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-t1grmCPQhRgwS64RjEwkK61F2qxxMBKuv0/DzBTnL3s=";
|
hash = "sha256-t1grmCPQhRgwS64RjEwkK61F2qxxMBKuv0/DzBTnL3s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
tests.version = testers.testVersion {
|
tests.version = testers.testVersion {
|
||||||
package = cowsay;
|
package = finalAttrs.finalPackage;
|
||||||
command = "cowsay --version";
|
command = "cowsay --version";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -45,9 +45,9 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A program which generates ASCII pictures of a cow with a message";
|
description = "A program which generates ASCII pictures of a cow with a message";
|
||||||
homepage = "https://cowsay.diamonds";
|
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;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ rob anthonyroussel ];
|
maintainers = with maintainers; [ rob anthonyroussel ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue