mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
haskell-generic-builder: support badPlatforms
meta.badPlatforms allows us to exclude specific platforms from the list of supported platforms without the need to explicitly substract it from lib.platforms.all (or our inferior equivalent allKnownPlatforms) in platforms. Thus it'll map nicely to unsupported-platforms in the hackage2nix configuration in the future.
This commit is contained in:
parent
175aa37e75
commit
6955f4e4e6
@ -44,6 +44,7 @@ in
|
||||
, libraryFrameworkDepends ? [], executableFrameworkDepends ? []
|
||||
, homepage ? "https://hackage.haskell.org/package/${pname}"
|
||||
, platforms ? with lib.platforms; all # GHC can cross-compile
|
||||
, badPlatforms ? lib.platforms.none
|
||||
, hydraPlatforms ? null
|
||||
, hyperlinkSource ? true
|
||||
, isExecutable ? false, isLibrary ? !isExecutable
|
||||
@ -663,6 +664,7 @@ stdenv.mkDerivation ({
|
||||
// optionalAttrs (args ? description) { inherit description; }
|
||||
// optionalAttrs (args ? maintainers) { inherit maintainers; }
|
||||
// optionalAttrs (args ? hydraPlatforms) { inherit hydraPlatforms; }
|
||||
// optionalAttrs (args ? badPlatforms) { inherit badPlatforms; }
|
||||
// optionalAttrs (args ? changelog) { inherit changelog; }
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user