From ed63f825db57e7ebc7f0b0f5055472be8a3044f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Tue, 9 Jun 2020 04:38:56 -0300 Subject: [PATCH] haunt: init at 0.2.4 --- pkgs/applications/misc/haunt/default.nix | 42 ++++++++++++++++++++++++ pkgs/overlay.nix | 4 +++ 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/misc/haunt/default.nix diff --git a/pkgs/applications/misc/haunt/default.nix b/pkgs/applications/misc/haunt/default.nix new file mode 100644 index 0000000..7c0abc6 --- /dev/null +++ b/pkgs/applications/misc/haunt/default.nix @@ -0,0 +1,42 @@ +{ stdenv, lib, fetchzip, makeWrapper, pkgconfig, guile, guile-commonmark, guile-reader }: + +stdenv.mkDerivation rec { + pname = "haunt"; + version = "0.2.4"; + + src = fetchzip { + url = "https://files.dthompson.us/haunt/haunt-${version}.tar.gz"; + sha256 = "1l8sjqm9yby92dkzbk0s6gfasmyab1ipq6qlnmyfvbralvmnvchz"; + }; + + nativeBuildInputs = [ makeWrapper pkgconfig ]; + buildInputs = [ guile guile-commonmark guile-reader ]; + + makeFlags = [ + "moddir=$(out)/share/guile/site" + "godir=$(out)/share/guile/site/site-ccache" + ]; + + doCheck = true; + + # Not sure this is the right way, shouldn't it be covered by Guile's + # setup hook? Anyway, copied it from skribilo and it works. + postInstall = '' + wrapProgram $out/bin/haunt \ + --prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-reader}/share/guile/site:${guile-commonmark}/share/guile/site" \ + --prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-reader}/share/guile/site:${guile-commonmark}/share/guile/site" + ''; + + meta = with lib; { + description = "Functional static site generator"; + longDescription = '' + Haunt is a static site generator written in Guile Scheme. + Haunt features a functional build system and an extensible + interface for reading articles in any format. + ''; + homepage = "https://dthompson.us/projects/haunt.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ AluisioASG ]; + platforms = platforms.gnu; + }; +} diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix index 305a80b..b86feb4 100644 --- a/pkgs/overlay.nix +++ b/pkgs/overlay.nix @@ -10,6 +10,10 @@ self: super: inherit (self) pkgconfig guile; }; + haunt = super.callPackage ./applications/misc/haunt { + inherit (self) pkgconfig guile guile-commonmark guile-reader; + }; + linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (import ./os-specific/linux/kernel-packages.nix); -- 2.26.2