windows: add more meta

‘platforms.windows’ includes all windows platforms. Should prefer this
to using assertions.
wip/yesman
Matthew Bauer 6 years ago
parent b744586c7b
commit f32e9a34c8
  1. 4
      pkgs/os-specific/windows/libgnurx/default.nix
  2. 4
      pkgs/os-specific/windows/mingw-w64/default.nix
  3. 6
      pkgs/os-specific/windows/mingwrt/default.nix
  4. 4
      pkgs/os-specific/windows/w32api/default.nix
  5. 6
      pkgs/os-specific/windows/wxMSW-2.8/default.nix

@ -8,4 +8,8 @@ in stdenv.mkDerivation rec {
url = "mirror://sourceforge/mingw/Other/UserContributed/regex/mingw-regex-${version}/mingw-${name}-src.tar.gz";
sha256 = "0xjxcxgws3bblybw5zsp9a4naz2v5bs1k3mk8dw00ggc0vwbfivi";
};
meta = {
platforms = stdenv.lib.platforms.windows;
};
}

@ -6,4 +6,8 @@ stdenv.mkDerivation {
dontStrip = true;
hardeningDisable = [ "stackprotector" "fortify" ];
patches = [ ./osvi.patch ];
meta = {
platforms = stdenv.lib.platforms.windows;
};
}

@ -1,4 +1,4 @@
{ stdenv, callPackage, lib, fetchurl }:
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "mingwrt-5.0.2";
@ -8,7 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "02pydg1m8y35nxb4k34nlb5c341y2waq76z42mgdzlcf661r91p0";
};
meta.platforms = [ lib.systems.inspect.isMinGW ];
meta = {
platforms = lib.platforms.windows;
};
dontStrip = true;
hardeningDisable = [ "stackprotector" "fortify" ];

@ -8,7 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "09rhnl6zikmdyb960im55jck0rdy5z9nlg3akx68ixn7khf3j8wb";
};
meta.platforms = [ lib.systems.inspect.isMinGW ];
meta = {
platforms = lib.platforms.windows;
};
dontStrip = true;
}

@ -2,8 +2,6 @@
, hostPlatform
}:
assert hostPlatform.isWindows;
stdenv.mkDerivation {
name = "wxMSW-2.8.11";
@ -32,4 +30,8 @@ stdenv.mkDerivation {
";
passthru = {inherit compat24 compat26 unicode;};
meta = {
platforms = stdenv.lib.platforms.windows;
};
}

Loading…
Cancel
Save