Add a nix-shell expression
This commit is contained in:
parent
4d176b52e7
commit
687be80dff
|
@ -0,0 +1,15 @@
|
|||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
|
||||
|
||||
let
|
||||
|
||||
inherit (nixpkgs) pkgs;
|
||||
|
||||
haskellPackages = if compiler == "default"
|
||||
then pkgs.haskellPackages
|
||||
else pkgs.haskell.packages.${compiler};
|
||||
|
||||
drv = haskellPackages.callPackage ./. {};
|
||||
|
||||
in
|
||||
|
||||
if pkgs.lib.inNixShell then drv.env else drv
|
Loading…
Reference in New Issue