slweb: 0.6.9 → 0.6.11

This commit is contained in:
Nikolay Korotkiy 2023-09-29 21:03:20 +04:00
parent 8d6ff0eb56
commit 2aaf9f24c4
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -2,29 +2,35 @@
, stdenv
, fetchFromSourcehut
, redo-apenwarr
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "slweb";
version = "0.6.9";
version = "0.6.11";
src = fetchFromSourcehut {
owner = "~strahinja";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YSHJJ+96Xj2zaDtPi8jftPWIyeIG9LwQ/eYT/oh2Y2c=";
repo = "slweb";
rev = "v${finalAttrs.version}";
hash = "sha256-+bKapK/s1pmo1NRRslf7V4ogWTtchFNWpzi+S8YG6+4=";
};
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/";
@ -32,4 +38,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
maintainers = with maintainers; [ GaetanLepage ];
};
}
})