Merge pull request #258065 from sikmir/slweb

slweb: 0.6.9 → 0.6.11

authored by Nikolay Korotkiy and committed by GitHub bfe8dbc8 c182df2e

+12 -6
+12 -6
pkgs/applications/misc/slweb/default.nix
··· 2 , stdenv 3 , fetchFromSourcehut 4 , redo-apenwarr 5 }: 6 7 - stdenv.mkDerivation rec { 8 pname = "slweb"; 9 - version = "0.6.9"; 10 11 src = fetchFromSourcehut { 12 owner = "~strahinja"; 13 - repo = pname; 14 - rev = "v${version}"; 15 - sha256 = "sha256-YSHJJ+96Xj2zaDtPi8jftPWIyeIG9LwQ/eYT/oh2Y2c="; 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/"; ··· 32 platforms = platforms.linux; 33 maintainers = with maintainers; [ GaetanLepage ]; 34 }; 35 - }
··· 2 , stdenv 3 , fetchFromSourcehut 4 , redo-apenwarr 5 + , testers 6 }: 7 8 + stdenv.mkDerivation (finalAttrs: { 9 pname = "slweb"; 10 + version = "0.6.11"; 11 12 src = fetchFromSourcehut { 13 owner = "~strahinja"; 14 + repo = "slweb"; 15 + rev = "v${finalAttrs.version}"; 16 + hash = "sha256-+bKapK/s1pmo1NRRslf7V4ogWTtchFNWpzi+S8YG6+4="; 17 }; 18 19 nativeBuildInputs = [ redo-apenwarr ]; 20 21 installPhase = '' 22 runHook preInstall 23 + export FALLBACKVER=${finalAttrs.version} 24 PREFIX=$out redo install 25 runHook postInstall 26 ''; 27 28 enableParallelBuilding = true; 29 30 + passthru.tests.version = testers.testVersion { 31 + package = finalAttrs.finalPackage; 32 + }; 33 + 34 meta = with lib; { 35 description = "A static website generator which aims at being simplistic"; 36 homepage = "https://strahinja.srht.site/slweb/"; ··· 38 platforms = platforms.linux; 39 maintainers = with maintainers; [ GaetanLepage ]; 40 }; 41 + })