c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
42 lines
951 B
Nix
42 lines
951 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, redo-apenwarr
|
|
, testers
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "slweb";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~strahinja";
|
|
repo = "slweb";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-QDHcp5pCmapgOlJpDDyyC12JOfh/biDyF6O+iKGbOGg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ redo-apenwarr ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
export FALLBACKVER=${finalAttrs.version}
|
|
PREFIX=$out redo install
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A static website generator which aims at being simplistic";
|
|
homepage = "https://strahinja.srht.site/slweb/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
mainProgram = "slweb";
|
|
};
|
|
})
|