-
-
Save meditans/0ca5e3b5eba0adc7356e109d5fa6270f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }: | |
let | |
inherit (nixpkgs) pkgs; | |
f = { mkDerivation, base, containers, gomp ? null, hspec, QuickCheck | |
, stdenv, transformers, z3 | |
}: | |
mkDerivation { | |
pname = "z3"; | |
version = "4.3"; | |
src = ./.; | |
isLibrary = true; | |
isExecutable = true; | |
libraryHaskellDepends = [ base containers transformers ]; | |
librarySystemDepends = [ gomp z3 ]; | |
testHaskellDepends = [ base hspec QuickCheck ]; | |
homepage = "https://github.com/IagoAbal/haskell-z3"; | |
description = "Bindings for the Z3 Theorem Prover"; | |
license = stdenv.lib.licenses.bsd3; | |
}; | |
haskellPackages = if compiler == "default" | |
then pkgs.haskellPackages | |
else pkgs.haskell.packages.${compiler}; | |
variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id; | |
drv = variant (haskellPackages.callPackage f {inherit (pkgs) z3;}); | |
in | |
if pkgs.lib.inNixShell then drv.env else drv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment