git.iko.soy/typeable/cabal2nix
on master help sign in
Add z3 to the DYLD_LIBRARY_PATH on darwin.
commit200d26228e22fba8754544c5d3a494d45c3b4fd3 authorPeter Simons <simons@cryp.to> dateSat 27 Jun 2015, 12:01 (11 years ago) parentf87d458
1 file changed+1
src/Cabal2Nix/PostProcess.hs+1
src/Cabal2Nix/PostProcess.hs+1
@@ -120,6 +120,7 @@ postProcess' deriv@(MkDerivation {..})
120120 | pname == "SDL2-ttf" = deriv { buildDepends = Set.delete "SDL2" buildDepends }
121121 | pname == "jsaddle" = deriv { buildDepends = Set.delete "ghcjs-base" buildDepends, testDepends = Set.delete "ghcjs-base" testDepends }
122122 | pname == "hzk" = deriv { testDepends = Set.delete "zookeeper_mt" testDepends, buildTools = Set.insert "zookeeper_mt" buildTools }
123+ | pname == "z3" = deriv { phaseOverrides = "preBuild = stdenv.lib.optionalString stdenv.isDarwin \"export DYLD_LIBRARY_PATH=${z3}/lib\";" }
123124 | pname == "zip-archive" = deriv { testDepends = Set.delete "zip" testDepends, buildTools = Set.insert "zip" buildTools }
124125 | otherwise = deriv
125126