Nix shell

This commit is contained in:
Igor Ranieri 2025-10-01 14:30:27 +02:00
parent d833f27ac1
commit 144b5f414d
3 changed files with 181 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.ghc9102.ghc
zlib
]
++ map haskell.lib.justStaticExecutables [
haskellPackages.cabal-gild
haskellPackages.fourmolu
cabal-install
];
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath packages;
}