summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-26 14:08:10 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-26 14:08:10 +0100
commit34c67488c6ebdc19daf7699d424e8257619aa96d (patch)
treeb52e3a38774be185291b5a360194676211f88e34 /default.nix
init
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..830ada3
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,24 @@
+{ pkgs ? import <nixpkgs> { } }:
+let
+ haskellPackages = pkgs.haskellPackages.override {
+ overrides = self: super: {
+ feed-nomath-org = self.callCabal2nix "feed-nomath-org" ./. { };
+ };
+ };
+in
+rec {
+ inherit (haskellPackages) feed-nomath-org;
+ shell = haskellPackages.shellFor {
+ packages = _: [
+ feed-nomath-org
+ haskellPackages.atom-conduit
+ ];
+ buildInputs = [
+ haskellPackages.cabal2nix
+ haskellPackages.cabal-install
+ haskellPackages.ormolu
+ ];
+ withHoogle = true;
+ withHaddock = true;
+ };
+}