Skip to content

Commit 3cb92f2

Browse files
hamishmackjasagredo
authored andcommitted
Fix windows cross compilation of basement
1 parent 6dbe803 commit 3cb92f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nix/project.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ let
9696
plutus-tx-plugin.ghcOptions = [ "-Werror" ];
9797
};
9898
}
99+
({ lib, pkgs, ... }: lib.mkIf (pkgs.stdenv.hostPlatform.isWindows) {
100+
# This fixed basement compilation error on Windows (ref: https://ci.iog.io/build/8529222/nixlog/1)
101+
# ```
102+
# Preprocessing library for basement-0.0.16...
103+
# Size.hsc:126:30: error: initialization of ‘long long int’ from ‘void *’ makes integer from pointer without a cast []
104+
# compilation failed
105+
# ```
106+
packages.basement.configureFlags = [ "--hsc2hs-option=--cflag=-Wno-int-conversion" ];
107+
})
99108
];
100109
});
101110
in

0 commit comments

Comments
 (0)