coreboot-utils: include common meta attrs for all
This commit is contained in:
parent
68dfdd34ae
commit
72e242d521
1 changed files with 7 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
let
|
let
|
||||||
version = "4.12";
|
version = "4.12";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
commonMeta = with stdenv.lib; {
|
||||||
description = "Various coreboot-related tools";
|
description = "Various coreboot-related tools";
|
||||||
homepage = "https://www.coreboot.org";
|
homepage = "https://www.coreboot.org";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
@ -12,7 +12,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
generic = { pname, path ? "util/${pname}", ... }@args: stdenv.mkDerivation (rec {
|
generic = { pname, path ? "util/${pname}", ... }@args: stdenv.mkDerivation (rec {
|
||||||
inherit pname version meta;
|
inherit pname version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://coreboot.org/releases/coreboot-${version}.tar.xz";
|
url = "https://coreboot.org/releases/coreboot-${version}.tar.xz";
|
||||||
|
@ -29,7 +29,9 @@ let
|
||||||
"INSTALL=install"
|
"INSTALL=install"
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
];
|
];
|
||||||
} // args);
|
|
||||||
|
meta = commonMeta // args.meta;
|
||||||
|
} // (removeAttrs args ["meta"]));
|
||||||
|
|
||||||
utils = {
|
utils = {
|
||||||
msrtool = generic {
|
msrtool = generic {
|
||||||
|
@ -99,6 +101,7 @@ in utils // {
|
||||||
paths = stdenv.lib.attrValues utils;
|
paths = stdenv.lib.attrValues utils;
|
||||||
postBuild = "rm -rf $out/sbin";
|
postBuild = "rm -rf $out/sbin";
|
||||||
}) // {
|
}) // {
|
||||||
inherit meta version;
|
inherit version;
|
||||||
|
meta = commonMeta;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue