Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 60 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 meson, 6 ninja, 7 pkg-config, 8 glib, 9 gtk3-x11, 10 gobject-introspection, 11 libxklavier, 12 gitUpdater, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "libmatekbd"; 17 version = "1.28.0"; 18 19 src = fetchFromGitHub { 20 owner = "mate-desktop"; 21 repo = "libmatekbd"; 22 tag = "v${version}"; 23 hash = "sha256-6s8JiuXbBWOHxbNSuO8rglzOCRKlQ9fx/GsYYc08GmI="; 24 }; 25 26 strictDeps = true; 27 28 depsBuildBuild = [ pkg-config ]; 29 30 nativeBuildInputs = [ 31 meson 32 ninja 33 pkg-config 34 glib 35 gobject-introspection 36 ]; 37 38 buildInputs = [ 39 glib 40 gtk3-x11 41 libxklavier 42 ]; 43 44 postInstall = '' 45 glib-compile-schemas $out/share/glib-2.0/schemas 46 ''; 47 48 passthru.updateScript = gitUpdater { 49 rev-prefix = "v"; 50 odd-unstable = true; 51 }; 52 53 meta = with lib; { 54 description = "Keyboard management library for MATE"; 55 homepage = "https://github.com/mate-desktop/libmatekbd"; 56 license = licenses.gpl2Plus; 57 platforms = platforms.unix; 58 teams = [ teams.mate ]; 59 }; 60}