2021-05-06 10:08:08 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2021-06-13 01:10:46 +02:00
|
|
|
, nixos
|
2021-05-06 10:08:08 +02:00
|
|
|
, testVersion
|
2021-06-13 01:10:46 +02:00
|
|
|
, testEqualDerivation
|
2021-05-06 10:08:08 +02:00
|
|
|
, hello
|
|
|
|
}:
|
2004-11-05 21:54:19 +01:00
|
|
|
|
2010-02-09 11:41:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hello";
|
2018-06-09 22:14:36 +02:00
|
|
|
version = "2.10";
|
2010-11-29 17:03:36 +01:00
|
|
|
|
2017-11-13 17:45:09 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnu/hello/${pname}-${version}.tar.gz";
|
2017-11-13 17:45:09 +01:00
|
|
|
sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i";
|
2008-06-17 16:19:59 +02:00
|
|
|
};
|
2010-02-05 15:13:25 +01:00
|
|
|
|
2016-08-07 17:17:02 +02:00
|
|
|
doCheck = true;
|
2015-09-17 15:24:32 +02:00
|
|
|
|
2021-06-13 01:10:46 +02: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-06 10:08:08 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2008-06-17 16:19:59 +02: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 03:11:51 +02:00
|
|
|
homepage = "https://www.gnu.org/software/hello/manual/";
|
2019-05-10 18:55:29 +02:00
|
|
|
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}";
|
2018-05-22 19:25:09 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2004-11-05 21:54:19 +01:00
|
|
|
};
|
|
|
|
}
|