Nix build support
This commit is contained in:
parent
22bf133122
commit
3bfb97109f
21
default.nix
Normal file
21
default.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Development workflow
|
||||||
|
# - Executing nix-build builds the packages
|
||||||
|
# - Executing nix-shell returns a shell environment containing
|
||||||
|
# 1. Haskell packages needed
|
||||||
|
# 2. Hoogle files for packages
|
||||||
|
# 3. cabal and ghcid installed
|
||||||
|
{ pkgs ? import <unstable> {}
|
||||||
|
}:
|
||||||
|
pkgs.haskellPackages.developPackage {
|
||||||
|
root = ./.;
|
||||||
|
name = "blogng";
|
||||||
|
modifier = drv:
|
||||||
|
# add buildtools such as cabal
|
||||||
|
pkgs.haskell.lib.addBuildTools drv
|
||||||
|
(with pkgs.haskellPackages; [
|
||||||
|
cabal-install
|
||||||
|
ghcid
|
||||||
|
# install hoogle files for packages we use.
|
||||||
|
#(hoogleLocal {packages = drv.propagatedBuildInputs;})
|
||||||
|
]);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user