autodocodec/shell.nix
2022-06-28 13:52:54 +02:00

15 lines
425 B
Nix

{ sources ? import ./nix/sources.nix
, nixpkgs ? sources.nixpkgs
, pkgs ? import ./nix/pkgs.nix { inherit nixpkgs sources; }
, pre-commit ? import ./nix/pre-commit.nix { inherit sources; }
}:
pkgs.haskell.lib.buildStackProject {
name = "autodocodec-shell";
buildInputs = with pkgs; [
(import sources.niv { }).niv
zlib
haskellPackages.doctest
] ++ pre-commit.tools;
shellHook = pre-commit.run.shellHook;
}