Skip to content

Commit

Permalink
Generic shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtanguy committed Sep 4, 2015
1 parent 220f697 commit 77efcbf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ pkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }:
let hspkgs = pkgs.haskell.packages.${compiler}.override {
overrides = self: super: {
quickwebapp = self.callPackage ./. {};
};
};
overrides = self: super: {
this = self.callPackage ./. {};
};
};
hsWithTools = pkgs.lib.overrideDerivation hspkgs.this (attrs: with pkgs; {
buildInputs = [ /* Other deps */ ] ++ attrs.buildInputs;
});
in
hspkgs.quickwebapp.env
hsWithTools.env

0 comments on commit 77efcbf

Please sign in to comment.