2021-04-26 15:47:18 +03:00
|
|
|
{ callPackage
|
|
|
|
, lib
|
2021-05-06 11:08:08 +03:00
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2021-06-13 02:10:46 +03:00
|
|
|
, nixos
|
2022-04-20 05:50:27 +03:00
|
|
|
, testers
|
2021-05-06 11:08:08 +03:00
|
|
|
, hello
|
|
|
|
}:
|
2004-11-05 23:54:19 +03:00
|
|
|
|
2021-12-23 22:54:57 +03:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "hello";
|
2022-07-31 18:01:33 +03:00
|
|
|
version = "2.12.1";
|
2010-11-29 19:03:36 +03:00
|
|
|
|
2017-11-13 19:45:09 +03:00
|
|
|
src = fetchurl {
|
2022-02-09 14:35:35 +03:00
|
|
|
url = "mirror://gnu/hello/hello-${finalAttrs.version}.tar.gz";
|
2022-07-31 18:01:33 +03:00
|
|
|
sha256 = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=";
|
2008-06-17 18:19:59 +04:00
|
|
|
};
|
2010-02-05 17:13:25 +03:00
|
|
|
|
2016-08-07 18:17:02 +03:00
|
|
|
doCheck = true;
|
2015-09-17 16:24:32 +03:00
|
|
|
|
2021-06-13 02:10:46 +03:00
|
|
|
passthru.tests = {
|
2022-04-20 16:31:36 +03:00
|
|
|
version = testers.testVersion { package = hello; };
|
2021-06-13 02:10:46 +03:00
|
|
|
|
|
|
|
invariant-under-noXlibs =
|
2022-04-20 05:50:27 +03:00
|
|
|
testers.testEqualDerivation
|
2021-06-13 02:10:46 +03:00
|
|
|
"hello must not be rebuilt when environment.noXlibs is set."
|
|
|
|
hello
|
|
|
|
(nixos { environment.noXlibs = true; }).pkgs.hello;
|
|
|
|
};
|
2021-05-06 11:08:08 +03:00
|
|
|
|
2022-03-15 14:22:16 +03:00
|
|
|
passthru.tests.run = callPackage ./test.nix { hello = finalAttrs.finalPackage; };
|
2021-04-20 14:46:53 +03:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2008-06-17 18:19:59 +04:00
|
|
|
description = "A program that produces a familiar, friendly greeting";
|
|
|
|
longDescription = ''
|
|
|
|
GNU Hello is a program that prints "Hello, world!" when you run it.
|
|
|
|
It is fully customizable.
|
|
|
|
'';
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://www.gnu.org/software/hello/manual/";
|
2021-12-23 22:54:57 +03:00
|
|
|
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${finalAttrs.version}";
|
2018-05-22 20:25:09 +03:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2004-11-05 23:54:19 +03:00
|
|
|
};
|
2021-04-20 14:46:53 +03:00
|
|
|
})
|