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