diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-05 04:54:24 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-05 07:43:25 +0100 |
commit | b57f3a35f23aae1b327b46a002201aa32edc525c (patch) | |
tree | f8a180bee2313be99d67b18e04aa541e6de6737a /default.nix |
chore: init
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0545c15 --- /dev/null +++ b/default.nix @@ -0,0 +1,24 @@ +{ pkgs ? import (import ./nix/sources.nix).nixpkgs { } +}: +let + haskellPackages = pkgs.haskellPackages.override + { + overrides = self: super: { + sh = self.callCabal2nix "sh" ./. { }; + }; + }; +in +{ + shell = haskellPackages.shellFor { + packages = (_: [ + haskellPackages.sh + ]); + buildInputs = [ + pkgs.cabal-install + pkgs.niv + pkgs.ormolu + ]; + withHoogle = true; + withHaddock = true; + }; +} |