nixify + npins (#9)

Reviewed-on: elland/haddock2#9
Co-authored-by: Igor Ranieri <igor@elland.me>
Co-committed-by: Igor Ranieri <igor@elland.me>
This commit is contained in:
Igor Ranieri 2025-10-05 11:06:33 +00:00 committed by elland
parent 82eb8435ab
commit ebda9e1d12
5 changed files with 184 additions and 0 deletions

24
shell.nix Normal file
View file

@ -0,0 +1,24 @@
let
sources = import ./npins;
in
{
pkgs ? import sources.nixpkgs { },
}:
pkgs.mkShell rec {
name = "haddock2";
packages =
with pkgs;
[
haskell.packages.ghc912.ghc
zlib
]
++ map haskell.lib.justStaticExecutables [
haskellPackages.cabal-gild
haskellPackages.fourmolu
cabal-install
];
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath packages;
}