2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, redo-apenwarr
|
2023-10-09 19:29:22 +00:00
|
|
|
, testers
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-12-28 21:21:41 +00:00
|
|
|
pname = "slweb";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.9.0";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~strahinja";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "slweb";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-QDHcp5pCmapgOlJpDDyyC12JOfh/biDyF6O+iKGbOGg=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ redo-apenwarr ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2023-10-09 19:29:22 +00:00
|
|
|
export FALLBACKVER=${finalAttrs.version}
|
2022-12-28 21:21:41 +00:00
|
|
|
PREFIX=$out redo install
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|