nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 testers, 5 wayland, 6 meson, 7 pkg-config, 8 ninja, 9 wayland-scanner, 10 expat, 11 libxml2, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "wayland-scanner"; 16 inherit (wayland) version src; 17 18 outputs = [ 19 "out" 20 "bin" 21 "dev" 22 ]; 23 separateDebugInfo = true; 24 25 mesonFlags = [ 26 (lib.mesonBool "documentation" false) 27 (lib.mesonBool "libraries" false) 28 (lib.mesonBool "tests" false) 29 ]; 30 31 depsBuildBuild = [ pkg-config ]; 32 33 nativeBuildInputs = [ 34 meson 35 pkg-config 36 ninja 37 ] 38 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) wayland-scanner; 39 40 buildInputs = [ 41 expat 42 libxml2 43 ]; 44 45 passthru = { 46 tests.pkg-config = testers.hasPkgConfigModules { 47 package = finalAttrs.finalPackage; 48 versionCheck = true; 49 }; 50 }; 51 52 meta = { 53 inherit (wayland.meta) homepage license maintainers; 54 mainProgram = "wayland-scanner"; 55 description = "C code generator for Wayland protocol XML files"; 56 platforms = lib.platforms.unix; 57 pkgConfigModules = [ "wayland-scanner" ]; 58 }; 59})