Revision d73b9b4270fd60825bd4b949ef6ec7b2a226250a authored by mkolosick on 09 July 2019, 05:14:28 UTC, committed by mkolosick on 09 July 2019, 05:14:28 UTC
1 parent 31fc379
Raw File
shell.nix
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:

let

  inherit (nixpkgs) pkgs;

  f = import ./default.nix { inherit (pkgs) fetchgitLocal; };

  haskellPackages = if compiler == "default"
                       then pkgs.haskellPackages
                       else pkgs.haskell.packages.${compiler};

  drv = haskellPackages.callPackage f { inherit (pkgs) z3; };

in

  if pkgs.lib.inNixShell then drv.env else drv
back to top