Add hablo package

This commit is contained in:
Tissevert 2020-12-14 21:07:44 +01:00
parent a182a6fa0c
commit 4f6b2c8e78
1 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,34 @@
{ pkgs ? import <nixpkgs> {} }:
builtins.intersectAttrs {SJW = 1;} (pkgs.haskellPackages.override {
builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
overrides = self: super: {
hablo = self.callPackage (
{ mkDerivation, aeson, base, bytestring, Cabal, containers
, directory, filepath, lucid, mtl, optparse-applicative, parsec
, SJW, stdenv, template, text, time, unix
}:
mkDerivation {
pname = "hablo";
version = "1.1.0.0";
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/hablo.git";
ref = "v1.1.0.0";
};
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = true;
libraryHaskellDepends = [
aeson base bytestring containers directory filepath lucid mtl
optparse-applicative parsec SJW template text time unix
];
executableHaskellDepends = [ base mtl ];
testHaskellDepends = [
base Cabal containers directory filepath lucid mtl text
];
homepage = "https://git.marvid.fr/Tissevert/hablo";
description = "A minimalist static blog generator";
license = stdenv.lib.licenses.bsd3;
}
) {};
SJW = self.callPackage (
{ mkDerivation, attoparsec, base, Cabal, containers, directory
, filepath, mtl, optparse-applicative, random, stdenv, text, time