Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromSourcehut, 5 wayland, 6 wayland-scanner, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "stacktile"; 11 version = "1.0.0"; 12 13 src = fetchFromSourcehut { 14 owner = "~leon_plickat"; 15 repo = "stacktile"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-IOFxgYMjh92jx2CPfBRZDL/1ucgfHtUyAL5rS2EG+Gc="; 18 }; 19 20 outputs = [ 21 "out" 22 "man" 23 ]; 24 25 nativeBuildInputs = [ 26 wayland-scanner 27 ]; 28 29 buildInputs = [ 30 wayland 31 ]; 32 33 makeFlags = [ 34 "PREFIX=${placeholder "out"}" 35 "MANDIR=${placeholder "man"}/share/man" 36 ]; 37 38 strictDeps = true; 39 40 meta = { 41 homepage = "https://sr.ht/~leon_plickat/stacktile/"; 42 description = "Layout generator for the river Wayland compositor"; 43 license = with lib.licenses; [ gpl3Plus ]; 44 mainProgram = "stacktile"; 45 maintainers = with lib.maintainers; [ ]; 46 platforms = lib.platforms.linux; 47 }; 48})