diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..121ec8d --- /dev/null +++ b/default.nix @@ -0,0 +1,15 @@ +{ mkDerivation, aeson, base, bytestring, ghc-prim, http-client +, http-conduit, http-types, lib, mtl, scientific, text, time +, transformers, unordered-containers, vector +}: +mkDerivation { + pname = "launchdarklyapi"; + version = "0.1.0.0"; + src = ./.; + libraryHaskellDepends = [ + aeson base bytestring ghc-prim http-client http-conduit http-types + mtl scientific text time transformers unordered-containers vector + ]; + license = "unknown"; + hydraPlatforms = lib.platforms.none; +} diff --git a/nix/overlays.nix b/nix/overlays.nix new file mode 100644 index 0000000..bd19cab --- /dev/null +++ b/nix/overlays.nix @@ -0,0 +1,2 @@ +[ (import ./overlays/aeson.nix) +] diff --git a/nix/overlays/aeson.nix b/nix/overlays/aeson.nix new file mode 100644 index 0000000..115e36d --- /dev/null +++ b/nix/overlays/aeson.nix @@ -0,0 +1,3 @@ +self: super: rec { + aeson = super.haskell.lib.dontCheck (self.callHackage "aeson" "1.5.6.0" {}); +} diff --git a/shell.nix b/shell.nix index e26a48f..76d5ae6 100644 --- a/shell.nix +++ b/shell.nix @@ -1,9 +1,15 @@ let - pkgs = import {}; + pkgs = import { overlays = (import ./nix/overlays.nix); }; + # haskellPackages = pkgs.haskellPackage.override { + # overrides = self: super: rec { + # aeson = pkgs.haskell.lib.dontCheck (self.callHackage "aeson" "1.5.6.0" {}); + # }; + # }; + project = pkgs.haskellPackages.callPackage ./default.nix {}; in pkgs.mkShell { name = "launchdarklyapi"; - buildInputs = with pkgs; [ + buildInputs = with pkgs; project.env.nativeBuildInputs ++ [ cabal-install ghc ];