Skip to content

Commit

Permalink
[nix] shell.nix is now a function
Browse files Browse the repository at this point in the history
  • Loading branch information
np committed Jan 15, 2015
1 parent fefb077 commit 37af047
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
let pkgs = (import <nixpkgs> {});
haskellPackages = pkgs.recurseIntoAttrs (pkgs.haskellPackages.override {
extension = self : super :
let callPackage = self.callPackage;
in {
RFC1751 = callPackage ./nix/RFC1751.nix {};
thisPackage = haskellPackages.callPackage (import ./default.nix) {};
};});
{ pkgs ? import <nixpkgs> {} }:
let haskellPackages =
pkgs.recurseIntoAttrs
(pkgs.haskellPackages.override {
extension = self: super:
{
RFC1751 = self.callPackage ./nix/RFC1751.nix {};
thisPackage = haskellPackages.callPackage (import ./default.nix) {};
};
});
in pkgs.lib.overrideDerivation haskellPackages.thisPackage (old: {
buildInputs = old.buildInputs ++ [
haskellPackages.cabalInstall
Expand Down

0 comments on commit 37af047

Please sign in to comment.