2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-01-13 20:06:32 +00:00
|
|
|
, nixos
|
2021-05-20 23:08:51 +00:00
|
|
|
, testVersion
|
2022-01-13 20:06:32 +00:00
|
|
|
, testEqualDerivation
|
2021-05-20 23:08:51 +00:00
|
|
|
, hello
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hello";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/hello/${pname}-${version}.tar.gz";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
passthru.tests = {
|
|
|
|
version = testVersion { package = hello; };
|
|
|
|
|
|
|
|
invariant-under-noXlibs =
|
|
|
|
testEqualDerivation
|
|
|
|
"hello must not be rebuilt when environment.noXlibs is set."
|
|
|
|
hello
|
|
|
|
(nixos { environment.noXlibs = true; }).pkgs.hello;
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.gnu.org/software/hello/manual/";
|
|
|
|
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|