]> git.immae.eu Git - github/fretlink/hmacaroons.git/blobdiff - shell.nix
Add maintenance status badge
[github/fretlink/hmacaroons.git] / shell.nix
index 07952fc2e2c493b868322442986d545cfd5c6987..9f7e0c17b4e26b609aa8f0de4bd29b50a666477f 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -1,8 +1,11 @@
-with (import <nixpkgs> {}).pkgs;
-let hspkgs = haskell-ng.packages.ghc7101.override {
-     overrides = self: super: {
-       hmacaroons = self.callPackage ./. {};
-      };
-   };
+{ pkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }:
+let hspkgs = pkgs.haskell.packages.${compiler}.override {
+  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