mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
xen: resolve some TODO comments
- Migrates to the new platform declaration style. - Removes the separate output TODO, as it is an impossible task. - Removes some superfluous comments. Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
parent
e3b83d4525
commit
ffd38a7044
@ -75,6 +75,7 @@
|
|||||||
let
|
let
|
||||||
# Inherit helper functions from lib and builtins.
|
# Inherit helper functions from lib and builtins.
|
||||||
inherit (builtins) elemAt isAttrs;
|
inherit (builtins) elemAt isAttrs;
|
||||||
|
inherit (lib.systems.inspect.patterns) isLinux isAarch64;
|
||||||
inherit (lib.strings)
|
inherit (lib.strings)
|
||||||
concatLines
|
concatLines
|
||||||
enableFeature
|
enableFeature
|
||||||
@ -83,7 +84,6 @@ let
|
|||||||
removeSuffix
|
removeSuffix
|
||||||
versionOlder
|
versionOlder
|
||||||
;
|
;
|
||||||
inherit (lib.platforms) linux aarch64;
|
|
||||||
inherit (lib) teams;
|
inherit (lib) teams;
|
||||||
inherit (lib.licenses)
|
inherit (lib.licenses)
|
||||||
cc-by-40
|
cc-by-40
|
||||||
@ -207,8 +207,6 @@ in
|
|||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
# TODO: Split $out in $bin for binaries and $lib for libraries.
|
|
||||||
# TODO: Python package to be in separate output/package.
|
|
||||||
outputs = [
|
outputs = [
|
||||||
"out"
|
"out"
|
||||||
"man"
|
"man"
|
||||||
@ -217,7 +215,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
"boot"
|
"boot"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Main Xen source.
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://xenbits.xenproject.org/git-http/xen.git";
|
url = "https://xenbits.xenproject.org/git-http/xen.git";
|
||||||
inherit rev hash;
|
inherit rev hash;
|
||||||
@ -465,8 +462,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
mainProgram = "xl";
|
mainProgram = "xl";
|
||||||
|
|
||||||
#TODO: Migrate meta.platforms to the new lib.systems.inspect.patterns.* format.
|
platforms = [ isLinux ];
|
||||||
platforms = linux;
|
badPlatforms = [ isAarch64 ];
|
||||||
badPlatforms = aarch64;
|
|
||||||
} // meta;
|
} // meta;
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user