voc-web/release.nix

36 lines
939 B
Nix
Raw Permalink Normal View History

2021-11-25 06:28:32 +00:00
let sources = import ./nix/sources.nix;
2024-01-22 13:27:08 +00:00
in { compiler ? "ghc928", pkgs ? import sources.nixpkgs { } }:
2021-11-25 06:28:32 +00:00
let
inherit (pkgs.lib.trivial) flip pipe;
inherit (pkgs.haskell.lib) appendPatch appendConfigureFlags;
haskellPackages = pkgs.haskell.packages.${compiler}.override {
overrides = hpNew: hpOld: {
hakyll = pipe hpOld.hakyll [
(flip appendPatch ./hakyll.patch)
(flip appendConfigureFlags [ "-f" "watchServer" "-f" "previewServer" ])
];
voc-web = hpNew.callCabal2nix "voc-web" ./. { };
niv = import sources.niv { };
};
};
project = haskellPackages.voc-web;
in {
project = project;
shell = haskellPackages.shellFor {
packages = p: with p; [ project ];
buildInputs = with haskellPackages; [
ghcid # GHCi based IDE
hlint # or ormolu
pkgs.niv # Nix dependency management
2024-01-08 13:05:41 +00:00
pkgs.tea # Gitea official CLI client
2021-11-25 06:28:32 +00:00
];
withHoogle = true;
};
}