diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-11-11 10:53:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 10:53:04 +0000 |
commit | 290eb756782533bdf71a63c788796ded80dcab52 (patch) | |
tree | 7b81970079de2d98a82a6c80b2bf87af91400860 | |
parent | 7e345e064b2e429ae0bf50309efa1b1e69927083 (diff) | |
parent | 9d164580ba468efb1ec1b892ee5fc49109c33112 (diff) | |
download | nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar.gz nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar.bz2 nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar.lz nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar.xz nixlib-290eb756782533bdf71a63c788796ded80dcab52.tar.zst nixlib-290eb756782533bdf71a63c788796ded80dcab52.zip |
Merge pull request #50224 from volth/sed-windows
gnused: fix Windows build
-rw-r--r-- | pkgs/tools/text/gnused/422.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/text/gnused/default.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/text/gnused/422.nix b/pkgs/tools/text/gnused/422.nix index 037c2f17a63b..16d4f20fe8e7 100644 --- a/pkgs/tools/text/gnused/422.nix +++ b/pkgs/tools/text/gnused/422.nix @@ -8,6 +8,8 @@ stdenv.mkDerivation { sha256 = "f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7"; }; + configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMinGW "ac_cv_func__set_invalid_parameter_handler=no"; + outputs = [ "out" "info" ]; meta = { diff --git a/pkgs/tools/text/gnused/default.nix b/pkgs/tools/text/gnused/default.nix index af3db54e96d5..4bdddb8c50b7 100644 --- a/pkgs/tools/text/gnused/default.nix +++ b/pkgs/tools/text/gnused/default.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.gpl3Plus; - platforms = stdenv.lib.platforms.all; + platforms = stdenv.lib.platforms.unix; maintainers = [ ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1808dcf281e4..018bba2aff81 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2964,7 +2964,10 @@ with pkgs; gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { }; - gnused = callPackage ../tools/text/gnused { }; + gnused = if !stdenv.hostPlatform.isWindows then + callPackage ../tools/text/gnused { } # broken on Windows + else + gnused_422; # This is an easy work-around for [:space:] problems. gnused_422 = callPackage ../tools/text/gnused/422.nix { }; |