aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix30
1 files changed, 25 insertions, 5 deletions
diff --git a/default.nix b/default.nix
index 5359062..08799f6 100644
--- a/default.nix
+++ b/default.nix
@@ -1,5 +1,25 @@
-{ pkgs ? import <nixpkgs> {
- overlays = [ (import ./pkgs) ];
- }
-}:
-pkgs.callPackage ./anissue.nix { }
+{ pkgs ? import <nixpkgs> { } }:
+
+let
+
+ haskellPackages = pkgs.haskellPackages.override {
+ overrides = self: super: {
+ anissue = super.callCabal2nix "anissue" ./. {};
+ };
+ };
+
+in
+
+rec {
+ inherit (haskellPackages) anissue;
+ shell = haskellPackages.shellFor {
+ packages = _: [ anissue ];
+ buildInputs = [
+ haskellPackages.cabal-install
+ haskellPackages.ormolu
+ ];
+ shellHook = ''
+ HISTFILE=${pkgs.lib.escapeShellArg ./.}/.history; export HISTFILE
+ '';
+ };
+}