diff --git a/default.nix b/default.nix index 8d962a8..c5a0314 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,34 @@ { pkgs ? import {} }: -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