Boilerplate operations

This commit is contained in:
Mats Rauhala 2018-09-20 21:14:24 +03:00
parent 9ff22271d4
commit 406e163afa
Signed by: MasseR
GPG Key ID: 1C18445948FFF87B
4 changed files with 27 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
_site
_cache

3
default.nix Normal file
View File

@ -0,0 +1,3 @@
{ haskellPackages }:
haskellPackages.callCabal2nix "site" ./. {}

21
release.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> {} }:
let
haskellPackages = pkgs.haskellPackages;
site = pkgs.callPackage ./default.nix {};
shell = pkgs.buildEnv {
name = "site-shell";
paths = [];
buildInputs = [
haskellPackages.ghcid
haskellPackages.hasktags
(haskellPackages.ghcWithHoogle (h: site.buildInputs ++ site.propagatedBuildInputs))
];
};
in
{
site = site;
shell = shell;
}

View File

@ -1,4 +1,4 @@
name: hakylltest
name: site
version: 0.1.0.0
build-type: Simple
cabal-version: >= 1.10