diff options
author | Milan Pässler <mil@nyantec.com> | 2020-07-18 23:56:29 +0200 |
---|---|---|
committer | Milan Pässler <mil@nyantec.com> | 2020-07-18 23:56:29 +0200 |
commit | 72e242d5215a7a9e4f60b68f940ccf1cec455a87 (patch) | |
tree | d4c6c62e7a08f865ab86d8aa037cc458bb9a182e /pkgs | |
parent | 68dfdd34ae8498a74ea4dd1d695ff38e88e6dd08 (diff) |
coreboot-utils: include common meta attrs for all
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/coreboot-utils/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/tools/misc/coreboot-utils/default.nix b/pkgs/tools/misc/coreboot-utils/default.nix index 533b4eefc2af6..39e2e041e3265 100644 --- a/pkgs/tools/misc/coreboot-utils/default.nix +++ b/pkgs/tools/misc/coreboot-utils/default.nix @@ -3,7 +3,7 @@ let version = "4.12"; - meta = with stdenv.lib; { + commonMeta = with stdenv.lib; { description = "Various coreboot-related tools"; homepage = "https://www.coreboot.org"; license = licenses.gpl2; @@ -12,7 +12,7 @@ let }; generic = { pname, path ? "util/${pname}", ... }@args: stdenv.mkDerivation (rec { - inherit pname version meta; + inherit pname version; src = fetchurl { url = "https://coreboot.org/releases/coreboot-${version}.tar.xz"; @@ -29,7 +29,9 @@ let "INSTALL=install" "PREFIX=${placeholder "out"}" ]; - } // args); + + meta = commonMeta // args.meta; + } // (removeAttrs args ["meta"])); utils = { msrtool = generic { @@ -99,6 +101,7 @@ in utils // { paths = stdenv.lib.attrValues utils; postBuild = "rm -rf $out/sbin"; }) // { - inherit meta version; + inherit version; + meta = commonMeta; }; } |