Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 869 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromSourcehut, 5 versionCheckHook, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "slweb"; 10 version = "0.10.2"; 11 12 src = fetchFromSourcehut { 13 owner = "~strahinja"; 14 repo = "slweb"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-TS87rFmK6IZbyj+11Oi/lHepa3MDebYILVLLLAgNEdc="; 17 }; 18 19 postPatch = '' 20 substituteInPlace config.mk \ 21 --replace-fail "/usr/local" "$out" 22 ''; 23 24 env = { 25 FALLBACKVER = finalAttrs.version; 26 }; 27 28 nativeInstallCheckInputs = [ 29 versionCheckHook 30 ]; 31 doInstallCheck = true; 32 33 meta = { 34 description = "Static website generator which aims at being simplistic"; 35 homepage = "https://strahinja.srht.site/slweb/"; 36 license = lib.licenses.gpl3Plus; 37 platforms = lib.platforms.linux; 38 maintainers = with lib.maintainers; [ GaetanLepage ]; 39 mainProgram = "slweb"; 40 }; 41})