X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shell.nix;h=9f7e0c17b4e26b609aa8f0de4bd29b50a666477f;hb=HEAD;hp=3846dd5bf7bc9d4862a420086bc9293865ba58d3;hpb=cfeb65a103cb58048328b2ca3ce74351017f70d1;p=github%2Ffretlink%2Fhmacaroons.git diff --git a/shell.nix b/shell.nix index 3846dd5..9f7e0c1 100644 --- a/shell.nix +++ b/shell.nix @@ -1,8 +1,11 @@ -{ pkgs ? import {}, compiler ? "ghc7101" }: +{ pkgs ? import {}, compiler ? "ghc7102" }: let hspkgs = pkgs.haskell.packages.${compiler}.override { - overrides = self: super: { - hmacaroons = self.callPackage ./. {}; - }; - }; + overrides = self: super: { + this = self.callPackage ./. {}; + }; +}; + hsWithTools = pkgs.lib.overrideDerivation hspkgs.this (attrs: with pkgs; { + buildInputs = [ /* Other deps */ ] ++ attrs.buildInputs; + }); in - hspkgs.hmacaroons.env + hsWithTools.env