1{ lib
2, stdenv
3, fetchFromSourcehut
4, redo-apenwarr
5}:
6
7stdenv.mkDerivation rec {
8 pname = "slweb";
9 version = "0.5.6";
10
11 src = fetchFromSourcehut {
12 owner = "~strahinja";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "sha256-2jvHgFPnI/Uoa5s+MF3BLTA2I3WXYrsEi+XyImxx6BA=";
16 };
17
18 nativeBuildInputs = [ redo-apenwarr ];
19
20 installPhase = ''
21 runHook preInstall
22 PREFIX=$out redo install
23 runHook postInstall
24 '';
25
26 enableParallelBuilding = true;
27
28 meta = with lib; {
29 description = "A static website generator which aims at being simplistic";
30 homepage = "https://strahinja.srht.site/slweb/";
31 license = licenses.gpl3Plus;
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ GaetanLepage ];
34 };
35}