Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 914 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromSourcehut, 5 wayland, 6 wayland-scanner, 7 unstableGitUpdater, 8}: 9 10stdenv.mkDerivation { 11 pname = "river-bnf"; 12 version = "0-unstable-2023-10-10"; 13 14 src = fetchFromSourcehut { 15 owner = "~leon_plickat"; 16 repo = "river-bnf"; 17 rev = "bb8ded380ed5d539777533065b4fd33646ad5603"; 18 hash = "sha256-rm9Nt3WLgq9QOXzrkYBGp45EALNYFTQGInxfYIN0XcU="; 19 }; 20 21 nativeBuildInputs = [ 22 wayland-scanner 23 ]; 24 25 buildInputs = [ 26 wayland.dev 27 ]; 28 29 postPatch = '' 30 substituteInPlace Makefile --replace '/usr/local' $out 31 ''; 32 33 passthru.updateScript = unstableGitUpdater { }; 34 35 meta = { 36 description = "Switch back'n'forth between river tags"; 37 homepage = "https://git.sr.ht/~leon_plickat/river-bnf"; 38 license = lib.licenses.gpl3Only; 39 maintainers = with lib.maintainers; [ adamcstephens ]; 40 mainProgram = "river-bnf"; 41 platforms = lib.platforms.linux; 42 }; 43}