nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 propagateBin,
4 lib,
5 extra-cmake-modules,
6 wayland-scanner,
7 plasma-wayland-protocols,
8 qtbase,
9 wayland,
10 wayland-protocols,
11 fetchpatch,
12}:
13
14mkDerivation {
15 pname = "kwayland";
16
17 patches = [
18 (fetchpatch {
19 url = "https://invent.kde.org/plasma/kwayland/-/commit/0954a179d4ef72597efea44a91071eb9a55a385f.diff";
20 hash = "sha256-TB9ZIYV58E41rA8mP5MXjIKZUOdH/rZfOYsgUlV+QLk=";
21 })
22 ];
23
24 nativeBuildInputs = [
25 extra-cmake-modules
26 wayland-scanner
27 ];
28 buildInputs = [
29 plasma-wayland-protocols
30 wayland
31 wayland-protocols
32 ];
33 propagatedBuildInputs = [ qtbase ];
34 setupHook = propagateBin; # XDG_CONFIG_DIRS
35 meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
36}