feat(tazblog): Add Nix build configuration

This commit is contained in:
Vincent Ambo 2019-06-29 14:11:56 +01:00
parent 207c6dac0c
commit 5c3ac08fcf
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Build configuration for the blog using plain Nix.
#
# tazblog.nix was generated using cabal2nix.
{ pkgs ? import <nixpkgs> {} }:
pkgs.haskell.packages.ghc865.callPackage ./tazblog.nix {}

View file

@ -0,0 +1,22 @@
{ mkDerivation, acid-state, base, base64-bytestring, blaze-html
, blaze-markup, bytestring, crypto-api, cryptohash, hamlet
, happstack-server, ixset, markdown, mtl, network, network-uri
, old-locale, options, rss, safecopy, shakespeare, stdenv, text
, time, transformers
}:
mkDerivation {
pname = "tazblog";
version = "5.1.3";
src = ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
acid-state base base64-bytestring blaze-html blaze-markup
bytestring crypto-api cryptohash hamlet happstack-server ixset
markdown mtl network network-uri old-locale rss safecopy
shakespeare text time transformers
];
executableHaskellDepends = [ acid-state base network options ];
description = "Tazjin's Blog";
license = stdenv.lib.licenses.mit;
}