Skip to content

Commit

Permalink
nix
Browse files Browse the repository at this point in the history
  • Loading branch information
imalsogreg committed Sep 21, 2017
1 parent 3b10d4e commit 9dad9c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion release.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{ compiler ? "default" }:
let
pkgs = import ./pkgs.nix;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};

in {
servant-snap = pkgs.haskellPackages.callPackage ./default.nix {};
servant-snap = haskellPackages.callPackage ./default.nix {};
}
3 changes: 2 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ compiler ? "default" }:
let
rel = import ./release.nix;
rel = import ./release.nix { compiler = compiler; };
in
rel.servant-snap.env

0 comments on commit 9dad9c0

Please sign in to comment.