Merge pull request #50224 from volth/sed-windows
gnused: fix Windows build
commit290eb756782533bdf71a63c788796ded80dcab52
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateSun 11 Nov 2018, 10:53 (8 years ago)
parent7e345e09d16458
pkgs/tools/text/gnused/422.nix+2
@@ -8,6 +8,8 @@ stdenv.mkDerivation {
88 sha256 = "f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7";
99 };
1010
11+ configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMinGW "ac_cv_func__set_invalid_parameter_handler=no";
12+
1113 outputs = [ "out" "info" ];
1214
1315 meta = {
pkgs/tools/text/gnused/default.nix+1−1
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232
3333 license = stdenv.lib.licenses.gpl3Plus;
3434
35− platforms = stdenv.lib.platforms.all;
35+ platforms = stdenv.lib.platforms.unix;
3636 maintainers = [ ];
3737 };
3838}
pkgs/top-level/all-packages.nix+4−1
@@ -2964,7 +2964,10 @@ with pkgs;
29642964
29652965 gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { };
29662966
2967− gnused = callPackage ../tools/text/gnused { };
2967+ gnused = if !stdenv.hostPlatform.isWindows then
2968+ callPackage ../tools/text/gnused { } # broken on Windows
2969+ else
2970+ gnused_422;
29682971 # This is an easy work-around for [:space:] problems.
29692972 gnused_422 = callPackage ../tools/text/gnused/422.nix { };
29702973