Revision 876cd1368d5698550bd781cee094ff8c982854bc authored by Ranjit Jhala on 11 April 2019, 18:12:14 UTC, committed by Ranjit Jhala on 11 April 2019, 18:12:14 UTC
1 parent 42c027a
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