on iko/ghcjs-patch-master help sign in
plugin target handling patch when target is win (#878)

Fixes file not found errors when cross compiling

commit8dc7c8ea7476ea3e29b21d0747ab8bed740d279f authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateThu 15 Oct 2020, 01:34 (6 years ago) parentd28860a
1 file changed+11
overlays/windows.nix+11
overlays/windows.nix+11
@@ -24,6 +24,17 @@ final: prev:
2424 configureFlags = (drv.configureFlags or []) ++ prev.stdenv.lib.optional prev.stdenv.hostPlatform.isWindows "--enable-static --disable-shared" ;
2525 });
2626
27+ binutils-unwrapped = prev.binutils-unwrapped.overrideAttrs (attrs: {
28+ patches = attrs.patches ++ final.lib.optional (final.stdenv.targetPlatform.isWindows && attrs.version or "" == "2.31.1") (
29+ final.fetchpatch {
30+ name = "plugin-target-handling-patch";
31+ url = "https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=999d6dff80fab12d22c2a8d91923db6bde7fb3e5";
32+ excludes = ["bfd/ChangeLog"];
33+ sha256 = "0a60w52wrf6qzchsiviprmcblq0q1fv1rbkx4gkk482dmvx4j0l6";
34+ }
35+ );
36+ });
37+
2738 haskell-nix = prev.haskell-nix // ({
2839 defaultModules = prev.haskell-nix.defaultModules ++ [
2940 ({ pkgs, buildModules, config, lib, ... }: