summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-27 01:13:30 +0200
committersterni <sternenseemann@systemli.org>2021-06-27 18:32:28 +0200
commit6955f4e4e63e86090a8905096129154995a210c9 (patch)
treef8c472ff19e1d9041bf3f49580683ce10c1c5d08 /pkgs/development/haskell-modules/generic-builder.nix
parent175aa37e753c25fc992fd28ca47fec6616763bb7 (diff)
downloadnixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar.gz
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar.bz2
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar.lz
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar.xz
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.tar.zst
nixpkgs-6955f4e4e63e86090a8905096129154995a210c9.zip
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.
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index bc0d0958902..5bf9f460acf 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -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; }
          ;