Unverified Commit 2aaf9f24 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

slweb: 0.6.9 → 0.6.11

parent 8d6ff0eb
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})