mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
949 B
Nix
43 lines
949 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, redo-apenwarr
|
|
, testers
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "slweb";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~strahinja";
|
|
repo = "slweb";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-QDHcp5pCmapgOlJpDDyyC12JOfh/biDyF6O+iKGbOGg=";
|
|
};
|
|
|
|
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 = "Static website generator which aims at being simplistic";
|
|
homepage = "https://strahinja.srht.site/slweb/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
mainProgram = "slweb";
|
|
};
|
|
})
|