blob: 8e9b004aef83b01d6c6104b184dae442a46eaa81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ 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
];
buildInputs = [
haskellPackages.cabal2nix
haskellPackages.cabal-install
haskellPackages.ormolu
];
withHoogle = true;
withHaddock = true;
shellHook = ''
REPOSITORIES=${pkgs.lib.concatStringsSep ":" [
"../feed-nomath-org"
]}; export REPOSITORIES
'';
};
}
|