aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-20 04:05:43 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-20 08:00:58 +0100
commit8a2d06011a1b74c17963b2715b11d0ca7ba202a8 (patch)
tree547e894a2f8e58527f6a85b8d070a34a1b2ddcf4 /default.nix
init
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..a602d13
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,21 @@
+{ pkgs ? import <nixpkgs> { } }:
+let
+ haskellPackages = pkgs.haskellPackages.override {
+ overrides = self: super: {
+ abuilder = self.callCabal2nix "abuilder" ./. { };
+ };
+ };
+in
+rec {
+ inherit (haskellPackages) abuilder;
+ shell = haskellPackages.shellFor {
+ packages = _: [ abuilder ];
+ buildInputs = [
+ haskellPackages.cabal2nix
+ haskellPackages.cabal-install
+ haskellPackages.ormolu
+ ];
+ withHoogle = true;
+ withHaddock = true;
+ };
+}