nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 58 lines 1.2 kB view raw
1{ 2 _experimental-update-script-combinators, 3 callPackage, 4 fetchFromSourcehut, 5 unstableGitUpdater, 6 lib, 7 pkg-config, 8 stdenv, 9 river, 10 wayland, 11 wayland-protocols, 12 wayland-scanner, 13 zig, 14}: 15 16stdenv.mkDerivation (finalAttrs: { 17 pname = "river-bedload"; 18 version = "0.1.1-unstable-2025-03-19"; 19 20 src = fetchFromSourcehut { 21 owner = "~novakane"; 22 repo = "river-bedload"; 23 rev = "4a2855ca2669372c346975dd6e1f612ca563b131"; 24 hash = "sha256-CQH2LQi2ga4YDD2ZYb998ExDJHK4TGHq5h3z94703Dc="; 25 }; 26 27 deps = callPackage ./build.zig.zon.nix { }; 28 29 nativeBuildInputs = [ 30 pkg-config 31 zig.hook 32 ]; 33 34 buildInputs = [ 35 wayland 36 wayland-protocols 37 wayland-scanner 38 ]; 39 40 zigBuildFlags = [ 41 "--system" 42 "${finalAttrs.deps}" 43 ]; 44 45 passthru.updateScript = _experimental-update-script-combinators.sequence [ 46 (unstableGitUpdater { tagPrefix = "v"; }) 47 ./update-build-zig-zon.sh 48 ]; 49 50 meta = { 51 description = "Display information about river in json in the STDOUT"; 52 homepage = "https://git.sr.ht/~novakane/river-bedload"; 53 license = lib.licenses.gpl3Only; 54 maintainers = with lib.maintainers; [ adamcstephens ]; 55 mainProgram = "river-bedload"; 56 inherit (river.meta) platforms; 57 }; 58})