Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 84 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 gettext, 7 itstool, 8 dbus-glib, 9 glib, 10 gtk3, 11 gucharmap, 12 libmateweather, 13 libnl, 14 libwnck, 15 libgtop, 16 libxml2, 17 libnotify, 18 mate-desktop, 19 mate-panel, 20 polkit, 21 upower, 22 wirelesstools, 23 hicolor-icon-theme, 24 wrapGAppsHook3, 25 mateUpdateScript, 26}: 27 28stdenv.mkDerivation rec { 29 pname = "mate-applets"; 30 version = "1.28.1"; 31 32 src = fetchurl { 33 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 34 sha256 = "pZZxQVJ9xbFy0yKmADwjruwlMWD2ULs2QwoG3a76fi4="; 35 }; 36 37 nativeBuildInputs = [ 38 gettext 39 itstool 40 pkg-config 41 wrapGAppsHook3 42 ]; 43 44 buildInputs = [ 45 dbus-glib 46 gtk3 47 gucharmap 48 hicolor-icon-theme 49 libgtop 50 libmateweather 51 libnl 52 libnotify 53 libwnck 54 libxml2 55 mate-desktop # for org.mate.lockdown 56 mate-panel 57 polkit 58 upower 59 wirelesstools 60 ]; 61 62 configureFlags = [ 63 "--enable-suid=no" 64 "--enable-in-process" 65 ]; 66 67 env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 68 69 enableParallelBuilding = true; 70 71 passthru.updateScript = mateUpdateScript { inherit pname; }; 72 73 meta = with lib; { 74 description = "Applets for use with the MATE panel"; 75 mainProgram = "mate-cpufreq-selector"; 76 homepage = "https://mate-desktop.org"; 77 license = with licenses; [ 78 gpl2Plus 79 lgpl2Plus 80 ]; 81 platforms = platforms.linux; 82 teams = [ teams.mate ]; 83 }; 84}