git.iko.soy/typeable/cabal2nix
on master help sign in
Add `Windows` to platforms.

That way we can use `cabal2nix` when cross compiling to windows as well.

commit69873f88e65fa3ffb065abcc6e283dca7ceb2d9a authorMoritz Angermann <moritz.angermann@gmail.com> dateMon 19 Mar 2018, 23:19 (9 years ago) parent63041e4
1 file changed+2−1
src/Cabal2nix.hs+2−1
src/Cabal2nix.hs+2−1
@@ -102,7 +102,8 @@ readP p = eitherReader $ \s -> case [ r' | (r',"") <- P.readP_to_S p s ] of
102102parsePlatform :: P.ReadP r Platform
103103parsePlatform = do arch <- P.choice [P.string "i686" >> return I386, P.string "x86_64" >> return X86_64]
104104 _ <- P.char '-'
105− os <- P.choice [P.string "linux" >> return Linux, P.string "darwin" >> return OSX]
105+ os <- P.choice [ P.string "linux" >> return Linux, P.string "darwin" >> return OSX
106+ , P.string "windows" >> return Windows]
106107 return (Platform arch os)
107108
108109pinfo :: ParserInfo Options