mkPackages: automagically wrapping with hello as a test package

This commit is contained in:
Gerg-L 2024-07-09 12:02:04 -04:00
parent cbbf862d6b
commit 98c4d12843
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
4 changed files with 94 additions and 18 deletions

View file

@ -0,0 +1,19 @@
{
stdenv,
fetchurl,
foo,
bar,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hello";
version = "2.12.1";
src = fetchurl {
url = "mirror://gnu/hello/hello-${finalAttrs.version}.tar.gz";
hash = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=";
};
passthru = {
inherit foo bar;
};
})