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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Static website generator which aims at being simplistic";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://strahinja.srht.site/slweb/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "slweb";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|