2025-04-02 20:37:22 +01:00
|
|
|
{ stdenv, fetchgit, zig_0_13, callPackage, wayland-scanner, wayland-protocols
|
|
|
|
, wayland, pkg-config, ... }:
|
2025-02-10 20:28:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "river-bedload";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~novakane/${finalAttrs.pname}";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-AMxFdKVy4E1xVdimqxm8KZW39krk/Mt27MWLxEiq1JA=";
|
|
|
|
};
|
|
|
|
|
2025-04-02 20:37:22 +01:00
|
|
|
deps = callPackage ./build.zig.zon.nix { };
|
2025-02-10 20:28:46 +00:00
|
|
|
|
2025-04-02 20:37:22 +01:00
|
|
|
zigBuildFlags = [ "--system" "${finalAttrs.deps}" ];
|
2025-02-10 20:28:46 +00:00
|
|
|
|
2025-04-02 20:37:22 +01:00
|
|
|
nativeBuildInputs = [ zig_0_13.hook pkg-config wayland-scanner ];
|
2025-02-10 20:28:46 +00:00
|
|
|
|
2025-04-02 20:37:22 +01:00
|
|
|
buildInputs = [ wayland wayland-protocols ];
|
2025-02-10 20:28:46 +00:00
|
|
|
})
|