Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 wayland, 5 meson, 6 pkg-config, 7 ninja, 8 wayland-scanner, 9 expat, 10 libxml2, 11}: 12 13stdenv.mkDerivation { 14 pname = "wayland-scanner"; 15 inherit (wayland) version src; 16 17 outputs = [ 18 "out" 19 "bin" 20 "dev" 21 ]; 22 separateDebugInfo = true; 23 24 mesonFlags = [ 25 (lib.mesonBool "documentation" false) 26 (lib.mesonBool "libraries" false) 27 (lib.mesonBool "tests" false) 28 ]; 29 30 depsBuildBuild = [ pkg-config ]; 31 32 nativeBuildInputs = [ 33 meson 34 pkg-config 35 ninja 36 ] 37 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) wayland-scanner; 38 39 buildInputs = [ 40 expat 41 libxml2 42 ]; 43 44 meta = with lib; { 45 inherit (wayland.meta) homepage license maintainers; 46 mainProgram = "wayland-scanner"; 47 description = "C code generator for Wayland protocol XML files"; 48 platforms = platforms.unix; 49 }; 50}