summary refs log tree commit diff
path: root/lib/systems/doubles.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-04-27 13:29:41 -0400
committerJohn Ericson <Ericson2314@Yahoo.com>2017-04-27 14:30:42 -0400
commitfcde869e7e0514817ea3dc8cd21c45f2c9e3bb86 (patch)
tree3ed1da71d53e3daacbdf7dc48f81994c7df14d92 /lib/systems/doubles.nix
parent7d546d777109a448bb3bd80b67923326586fef31 (diff)
downloadnixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar.gz
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar.bz2
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar.lz
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar.xz
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.tar.zst
nixpkgs-fcde869e7e0514817ea3dc8cd21c45f2c9e3bb86.zip
lib platform parsing: Fix windows
There is no more `cygwin` OS, but instead a `cygnus` abi. "win32"
and "mingw32" parse as `windows`. Add a 3-part hack because autotools
breaks on explicit abi with windows-like (e.g. "i686-pc-windows-gnu").

Also change cross triples to conform
Diffstat (limited to 'lib/systems/doubles.nix')
-rw-r--r--lib/systems/doubles.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/systems/doubles.nix b/lib/systems/doubles.nix
index 2622ddf4be1..9b17a51531a 100644
--- a/lib/systems/doubles.nix
+++ b/lib/systems/doubles.nix
@@ -30,7 +30,7 @@ in rec {
   mips = filterDoubles (matchAttrs { cpu = { family = "mips"; }; });
   x86_64 = filterDoubles parse.isx86_64;
 
-  cygwin = filterDoubles (matchAttrs { kernel = parse.kernels.cygwin; });
+  cygwin = filterDoubles parse.isCygwin;
   darwin = filterDoubles parse.isDarwin;
   freebsd = filterDoubles (matchAttrs { kernel = parse.kernels.freebsd; });
   gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }); # Should be better