Merge pull request #122997 from NixOS/gnome-40

GNOME 40: more updates

authored by Jan Tojnar and committed by GitHub 80a3e0dc 9645178a

+217 -156
+2 -2
pkgs/desktops/gnome/apps/gnome-calendar/default.nix
··· 24 25 stdenv.mkDerivation rec { 26 pname = "gnome-calendar"; 27 - version = "40.0"; 28 29 src = fetchurl { 30 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 31 - sha256 = "0d74hng9jdmwdcjgj4xfrcink2gwkbp1k1mad4wanaf7q31c6f38"; 32 }; 33 34 patches = [
··· 24 25 stdenv.mkDerivation rec { 26 pname = "gnome-calendar"; 27 + version = "40.1"; 28 29 src = fetchurl { 30 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 31 + sha256 = "2M30n57uHDo8aZHDL4VjxKfE2w23ymPOUcyRjkM7M6U="; 32 }; 33 34 patches = [
+22 -26
pkgs/desktops/gnome/apps/gnome-connections/default.nix
··· 1 - { lib, stdenv 2 , fetchurl 3 - , gnome 4 , meson 5 , ninja 6 , vala 7 - , pkg-config 8 , glib 9 , gtk3 10 - , python3 11 , libxml2 12 , gtk-vnc 13 - , gettext 14 - , desktop-file-utils 15 - , appstream-glib 16 - , gobject-introspection 17 - , freerdp 18 - , wrapGAppsHook 19 }: 20 21 stdenv.mkDerivation rec { 22 pname = "gnome-connections"; 23 - version = "3.38.1"; 24 25 src = fetchurl { 26 - url = "mirror://gnome/sources/connections/${lib.versions.majorMinor version}/connections-${version}.tar.xz"; 27 - hash = "sha256-5c7uBFkh9Vsw6bWWUDjNTMDrrFqI5JEgYlsWpfyuTpA="; 28 }; 29 30 nativeBuildInputs = [ 31 - desktop-file-utils 32 - gettext 33 - glib # glib-compile-resources 34 meson 35 - appstream-glib 36 ninja 37 pkg-config 38 - python3 39 vala 40 wrapGAppsHook 41 - 42 - # for gtk-frdp subproject 43 - gobject-introspection 44 ]; 45 46 buildInputs = [ ··· 48 gtk-vnc 49 gtk3 50 libxml2 51 - 52 - # for gtk-frdp subproject 53 - freerdp 54 ]; 55 56 postPatch = '' ··· 60 61 passthru = { 62 updateScript = gnome.updateScript { 63 - packageName = "connections"; 64 - attrPath = "gnome-connections"; 65 }; 66 }; 67
··· 1 + { lib 2 + , stdenv 3 , fetchurl 4 , meson 5 , ninja 6 + , pkg-config 7 , vala 8 + , gettext 9 + , itstool 10 + , python3 11 + , appstream-glib 12 + , desktop-file-utils 13 + , wrapGAppsHook 14 , glib 15 , gtk3 16 , libxml2 17 , gtk-vnc 18 + , gtk-frdp 19 + , gnome 20 }: 21 22 stdenv.mkDerivation rec { 23 pname = "gnome-connections"; 24 + version = "40.0.1"; 25 26 src = fetchurl { 27 + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 28 + hash = "sha256-vpvLoHzz+vWs4M5UzSL4YJtNx3ZuJe5f2cGAw5WbTRE="; 29 }; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 vala 36 + gettext 37 + itstool 38 + python3 39 + appstream-glib 40 + desktop-file-utils 41 + glib # glib-compile-resources 42 wrapGAppsHook 43 ]; 44 45 buildInputs = [ ··· 47 gtk-vnc 48 gtk3 49 libxml2 50 + gtk-frdp 51 ]; 52 53 postPatch = '' ··· 57 58 passthru = { 59 updateScript = gnome.updateScript { 60 + packageName = pname; 61 }; 62 }; 63
+25 -29
pkgs/desktops/gnome/apps/gnome-todo/default.nix
··· 1 - { lib, stdenv 2 , fetchurl 3 , fetchpatch 4 , meson ··· 9 , gettext 10 , gnome 11 , glib 12 - , gtk3 13 , libpeas 14 , gnome-online-accounts 15 , gsettings-desktop-schemas 16 , evolution-data-server 17 - , libxml2 18 - , libsoup 19 , libical 20 , librest 21 , json-glib ··· 23 24 stdenv.mkDerivation rec { 25 pname = "gnome-todo"; 26 - version = "3.28.1"; 27 28 src = fetchurl { 29 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 30 - sha256 = "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"; 31 }; 32 33 - patches = [ 34 - # fix build with libecal 2.0 35 - (fetchpatch { 36 - name = "gnome-todo-eds-libecal-2.0.patch"; 37 - url = "https://src.fedoraproject.org/rpms/gnome-todo/raw/bed44b8530f3c79589982e03b430b3a125e9bceb/f/gnome-todo-eds-libecal-2.0.patch"; 38 - sha256 = "1ghrz973skal36j90wm2z13m3panw983r6y0k7z9gpj5lxgz92mq"; 39 - }) 40 - ]; 41 - postPatch = '' 42 - chmod +x meson_post_install.py 43 - patchShebangs meson_post_install.py 44 - ''; 45 - 46 nativeBuildInputs = [ 47 meson 48 ninja ··· 54 55 buildInputs = [ 56 glib 57 - gtk3 58 libpeas 59 gnome-online-accounts 60 gsettings-desktop-schemas 61 gnome.adwaita-icon-theme 62 # Plug-ins 63 - evolution-data-server 64 - libxml2 65 - libsoup 66 libical 67 - librest 68 - json-glib 69 ]; 70 71 - # Fix parallel building: missing dependency from src/gtd-application.c 72 - # Probably remove for 3.30+ https://gitlab.gnome.org/GNOME/gnome-todo/issues/170 73 - preBuild = "ninja src/gtd-vcs-identifier.h"; 74 75 passthru = { 76 updateScript = gnome.updateScript {
··· 1 + { lib 2 + , stdenv 3 , fetchurl 4 , fetchpatch 5 , meson ··· 10 , gettext 11 , gnome 12 , glib 13 + , gtk4 14 + , wayland 15 + , libadwaita 16 , libpeas 17 , gnome-online-accounts 18 , gsettings-desktop-schemas 19 + , libportal 20 , evolution-data-server 21 , libical 22 , librest 23 , json-glib ··· 25 26 stdenv.mkDerivation rec { 27 pname = "gnome-todo"; 28 + version = "40.0"; 29 30 src = fetchurl { 31 + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 32 + sha256 = "aAl8lvBnXHFCZn0QQ0ToNHLdf8xTj+wKzb9gJrucobE="; 33 }; 34 35 nativeBuildInputs = [ 36 meson 37 ninja ··· 43 44 buildInputs = [ 45 glib 46 + gtk4 47 + wayland # required by gtk header 48 + libadwaita 49 libpeas 50 gnome-online-accounts 51 gsettings-desktop-schemas 52 gnome.adwaita-icon-theme 53 + 54 # Plug-ins 55 + libportal # background 56 + evolution-data-server # eds 57 libical 58 + librest # todoist 59 + json-glib # todoist 60 ]; 61 62 + postPatch = '' 63 + chmod +x build-aux/meson/meson_post_install.py 64 + patchShebangs build-aux/meson/meson_post_install.py 65 + 66 + # https://gitlab.gnome.org/GNOME/gnome-todo/merge_requests/103 67 + substituteInPlace src/meson.build \ 68 + --replace 'Gtk-3.0' 'Gtk-4.0' 69 + ''; 70 71 passthru = { 72 updateScript = gnome.updateScript {
+15 -3
pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix
··· 12 , libvncserver 13 , libsecret 14 , libnotify 15 , gdk-pixbuf 16 , freerdp 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "gnome-remote-desktop"; 21 - version = "0.1.9"; 22 23 src = fetchurl { 24 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 25 - hash = "sha256-8iZtp4tBRT7NNRKuzwop3rcMvq16RG/I2sAlEIsJ0M8="; 26 }; 27 28 nativeBuildInputs = [ ··· 36 buildInputs = [ 37 cairo 38 freerdp 39 gdk-pixbuf # For libnotify 40 glib 41 libnotify 42 libsecret 43 libvncserver 44 pipewire 45 systemd 46 ]; ··· 53 mesonFlags = [ 54 "-Dsystemd_user_unit_dir=${placeholder "out"}/lib/systemd/user" 55 ]; 56 57 meta = with lib; { 58 homepage = "https://wiki.gnome.org/Projects/Mutter/RemoteDesktop";
··· 12 , libvncserver 13 , libsecret 14 , libnotify 15 + , libxkbcommon 16 , gdk-pixbuf 17 , freerdp 18 + , fuse3 19 + , gnome 20 }: 21 22 stdenv.mkDerivation rec { 23 pname = "gnome-remote-desktop"; 24 + version = "40.1"; 25 26 src = fetchurl { 27 + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; 28 + hash = "sha256-mvpuUlVwo3IJP5cwM4JwkDiU87H5+KnfX1eDbqHSnek="; 29 }; 30 31 nativeBuildInputs = [ ··· 39 buildInputs = [ 40 cairo 41 freerdp 42 + fuse3 43 gdk-pixbuf # For libnotify 44 glib 45 libnotify 46 libsecret 47 libvncserver 48 + libxkbcommon 49 pipewire 50 systemd 51 ]; ··· 58 mesonFlags = [ 59 "-Dsystemd_user_unit_dir=${placeholder "out"}/lib/systemd/user" 60 ]; 61 + 62 + passthru = { 63 + updateScript = gnome.updateScript { 64 + packageName = pname; 65 + attrPath = "gnome.${pname}"; 66 + }; 67 + }; 68 69 meta = with lib; { 70 homepage = "https://wiki.gnome.org/Projects/Mutter/RemoteDesktop";
+32 -27
pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, meson, ninja, gettext, pkg-config, spidermonkey_68, glib 2 - , gnome, gnome-menus, substituteAll }: 3 4 stdenv.mkDerivation rec { 5 pname = "gnome-shell-extensions"; 6 - version = "40.0"; 7 8 src = fetchurl { 9 url = "mirror://gnome/sources/gnome-shell-extensions/${lib.versions.major version}/${pname}-${version}.tar.xz"; 10 - sha256 = "15hak4prx2nx1svfii39clxy1lll8crdf7p91if85jcsh6r8ab8p"; 11 - }; 12 - 13 - passthru = { 14 - updateScript = gnome.updateScript { 15 - packageName = pname; 16 - attrPath = "gnome.${pname}"; 17 - }; 18 }; 19 20 patches = [ ··· 22 src = ./fix_gmenu.patch; 23 gmenu_path = "${gnome-menus}/lib/girepository-1.0"; 24 }) 25 26 - # Do not show welcome dialog in gnome-classic. 27 - # Needed for gnome-shell 40.1. 28 - # https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/169 29 - (fetchpatch { 30 - url = "https://gitlab.gnome.org/GNOME/gnome-shell-extensions/commit/3e8bbb07ea7109c44d5ac7998f473779e742d041.patch"; 31 - sha256 = "jSmPwSBgRBfPPP9mGVjw1mSWumIXQqtA6tSqHr3U+3w="; 32 - }) 33 ]; 34 35 - doCheck = true; 36 - # 60 is required for tests 37 - # https://gitlab.gnome.org/GNOME/gnome-shell-extensions/blob/3.34.0/meson.build#L23 38 - checkInputs = [ spidermonkey_68 ]; 39 - 40 - nativeBuildInputs = [ meson ninja pkg-config gettext glib ]; 41 - 42 - mesonFlags = [ "-Dextension_set=all" ]; 43 44 preFixup = '' 45 # The meson build doesn't compile the schemas. ··· 63 done 64 ''; 65 66 meta = with lib; { 67 homepage = "https://wiki.gnome.org/Projects/GnomeShell/Extensions"; 68 description = "Modify and extend GNOME Shell functionality and behavior"; 69 maintainers = teams.gnome.members; 70 - license = licenses.gpl2; 71 platforms = platforms.linux; 72 }; 73 }
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , meson 5 + , ninja 6 + , gettext 7 + , pkg-config 8 + , glib 9 + , gnome 10 + , gnome-menus 11 + , substituteAll 12 + }: 13 14 stdenv.mkDerivation rec { 15 pname = "gnome-shell-extensions"; 16 + version = "40.1"; 17 18 src = fetchurl { 19 url = "mirror://gnome/sources/gnome-shell-extensions/${lib.versions.major version}/${pname}-${version}.tar.xz"; 20 + sha256 = "T7/OCtQ1e+5zrn3Bjqoe9MqnOF5PlPavuN/HJR/RqL8="; 21 }; 22 23 patches = [ ··· 25 src = ./fix_gmenu.patch; 26 gmenu_path = "${gnome-menus}/lib/girepository-1.0"; 27 }) 28 + ]; 29 30 + nativeBuildInputs = [ 31 + meson 32 + ninja 33 + pkg-config 34 + gettext 35 + glib 36 ]; 37 38 + mesonFlags = [ 39 + "-Dextension_set=all" 40 + ]; 41 42 preFixup = '' 43 # The meson build doesn't compile the schemas. ··· 61 done 62 ''; 63 64 + passthru = { 65 + updateScript = gnome.updateScript { 66 + packageName = pname; 67 + attrPath = "gnome.${pname}"; 68 + }; 69 + }; 70 + 71 meta = with lib; { 72 homepage = "https://wiki.gnome.org/Projects/GnomeShell/Extensions"; 73 description = "Modify and extend GNOME Shell functionality and behavior"; 74 maintainers = teams.gnome.members; 75 + license = licenses.gpl2Plus; 76 platforms = platforms.linux; 77 }; 78 }
+4 -11
pkgs/desktops/gnome/core/gnome-shell/default.nix
··· 1 { fetchurl 2 , fetchpatch 3 - , fetchgit 4 , substituteAll 5 , lib, stdenv 6 , meson ··· 67 in 68 stdenv.mkDerivation rec { 69 pname = "gnome-shell"; 70 - version = "40.0-unstable-2021-05-01"; 71 72 outputs = [ "out" "devdoc" ]; 73 74 - src = fetchgit { 75 - url = "https://gitlab.gnome.org/GNOME/gnome-shell.git"; 76 - rev = "a8a79c03330427808e776c344f7ebc42782a1b5a"; 77 - sha256 = "ivHV0SRpnBqsdC7fu1Xhtd/BA55O0UdbUyDLy5KHNYs="; 78 - fetchSubmodules = true; 79 }; 80 - # src = fetchurl { 81 - # url = "mirror://gnome/sources/gnome-shell/${lib.versions.major version}/${pname}-${version}.tar.xz"; 82 - # sha256 = "sha256-vOcfQC36qcXiab9lv0iiI0PYlubPmiw0ZpOS1/v2hHg="; 83 - # }; 84 85 patches = [ 86 # Hardcode paths to various dependencies so that they can be found at runtime.
··· 1 { fetchurl 2 , fetchpatch 3 , substituteAll 4 , lib, stdenv 5 , meson ··· 66 in 67 stdenv.mkDerivation rec { 68 pname = "gnome-shell"; 69 + version = "40.1"; 70 71 outputs = [ "out" "devdoc" ]; 72 73 + src = fetchurl { 74 + url = "mirror://gnome/sources/gnome-shell/${lib.versions.major version}/${pname}-${version}.tar.xz"; 75 + sha256 = "sha256-9j4r7Zm9iVjPMT2F9EoBjVn4UqBbqfKap8t0S+xvprc="; 76 }; 77 78 patches = [ 79 # Hardcode paths to various dependencies so that they can be found at runtime.
+4 -11
pkgs/desktops/gnome/core/mutter/default.nix
··· 1 { fetchurl 2 - , fetchpatch 3 , substituteAll 4 , runCommand 5 - , lib, stdenv 6 , pkg-config 7 , gnome 8 , gettext ··· 45 46 let self = stdenv.mkDerivation rec { 47 pname = "mutter"; 48 - version = "40.0"; 49 50 outputs = [ "out" "dev" "man" ]; 51 52 src = fetchurl { 53 url = "mirror://gnome/sources/mutter/${lib.versions.major version}/${pname}-${version}.tar.xz"; 54 - sha256 = "sha256-enGzEuWmZ8U3SJUYilBqP2tnF2i8s2K2jv3FYnc9GY4="; 55 }; 56 57 patches = [ ··· 62 (substituteAll { 63 src = ./fix-paths.patch; 64 inherit zenity; 65 - }) 66 - 67 - # Fix non-deterministic build failure: 68 - # https://gitlab.gnome.org/GNOME/mutter/-/issues/1682 69 - (fetchpatch { 70 - url = "https://gitlab.gnome.org/GNOME/mutter/commit/91117bb052ed0d69c8ea4159c1df15c814d90627.patch"; 71 - sha256 = "ek8hEoPP4S2TGOm6SGGOhUVIp4OT68nz0SQzZrceFUU="; 72 }) 73 ]; 74
··· 1 { fetchurl 2 , substituteAll 3 , runCommand 4 + , lib 5 + , stdenv 6 , pkg-config 7 , gnome 8 , gettext ··· 45 46 let self = stdenv.mkDerivation rec { 47 pname = "mutter"; 48 + version = "40.1"; 49 50 outputs = [ "out" "dev" "man" ]; 51 52 src = fetchurl { 53 url = "mirror://gnome/sources/mutter/${lib.versions.major version}/${pname}-${version}.tar.xz"; 54 + sha256 = "sha256-pl8ycpYRM4KWh9QQcmfk4ZKQ5thueAf62H6rCDHB4MA="; 55 }; 56 57 patches = [ ··· 62 (substituteAll { 63 src = ./fix-paths.patch; 64 inherit zenity; 65 }) 66 ]; 67
+9 -7
pkgs/desktops/gnome/extensions/sound-output-device-chooser/default.nix
··· 7 8 stdenv.mkDerivation rec { 9 pname = "gnome-shell-extension-sound-output-device-chooser"; 10 - version = "35"; 11 12 src = fetchFromGitHub { 13 owner = "kgshank"; 14 repo = "gse-sound-output-device-chooser"; 15 rev = version; 16 - sha256 = "sha256-Yl5ut6kJAkAAdCBiNFpwDgshXCLMmFH3/zhnFGpyKqs="; 17 }; 18 19 patches = [ ··· 28 dontBuild = true; 29 30 uuid = "sound-output-device-chooser@kgshank.net"; 31 - installPhase = '' 32 - runHook preInstall 33 - mkdir -p $out/share/gnome-shell/extensions 34 - cp -r ${uuid} $out/share/gnome-shell/extensions 35 - runHook postInstall 36 ''; 37 38 meta = with lib; {
··· 7 8 stdenv.mkDerivation rec { 9 pname = "gnome-shell-extension-sound-output-device-chooser"; 10 + version = "38"; 11 12 src = fetchFromGitHub { 13 owner = "kgshank"; 14 repo = "gse-sound-output-device-chooser"; 15 rev = version; 16 + sha256 = "sha256-LZ+C9iK+j7+DEscYCIObxXc0Bn0Z0xSsEFMZxc8REWA="; 17 }; 18 19 patches = [ ··· 28 dontBuild = true; 29 30 uuid = "sound-output-device-chooser@kgshank.net"; 31 + 32 + makeFlags = [ 33 + "INSTALL_DIR=${placeholder "out"}/share/gnome-shell/extensions" 34 + ]; 35 + 36 + preInstall = '' 37 + mkdir -p ${placeholder "out"}/share/gnome-shell/extensions 38 ''; 39 40 meta = with lib; {
+29 -13
pkgs/development/libraries/graphene/0001-meson-add-options-for-tests-installation-dirs.patch
··· 1 - From 2bf6614a6d7516e194e39eb691c05b486860153c Mon Sep 17 00:00:00 2001 2 From: worldofpeace <worldofpeace@protonmail.ch> 3 Date: Thu, 16 May 2019 21:15:15 -0400 4 Subject: [PATCH] meson: add options for tests installation dirs 5 6 --- 7 meson_options.txt | 6 ++++++ 8 - tests/meson.build | 19 ++++++++++++++----- 9 - 2 files changed, 20 insertions(+), 5 deletions(-) 10 11 diff --git a/meson_options.txt b/meson_options.txt 12 - index 578bdae..6f5fa23 100644 13 --- a/meson_options.txt 14 +++ b/meson_options.txt 15 - @@ -22,3 +22,9 @@ option('tests', type: 'boolean', 16 option('installed_tests', type: 'boolean', 17 value: true, 18 description: 'Install tests') ··· 23 + value: '', 24 + description: 'Installation directory for binary files in tests') 25 diff --git a/tests/meson.build b/tests/meson.build 26 - index 1f9bd0e..0253ac3 100644 27 --- a/tests/meson.build 28 +++ b/tests/meson.build 29 - @@ -22,8 +22,17 @@ unit_tests = [ 30 - python = python3.find_python() 31 - gen_installed_test = join_paths(meson.current_source_dir(), 'gen-installed-test.py') 32 33 -installed_test_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'installed-tests', graphene_api_path) 34 -installed_test_bindir = join_paths(get_option('prefix'), get_option('libexecdir'), 'installed-tests', graphene_api_path) ··· 46 47 # Make tests conditional on having mutest-1 installed system-wide, or 48 # available as a subproject 49 - @@ -42,13 +51,13 @@ if mutest_dep.found() 50 command: [ 51 - python, 52 gen_installed_test, 53 - '--testdir=@0@'.format(installed_test_bindir), 54 + '--testdir=@0@'.format(test_bindir), ··· 62 ) 63 64 test(unit, 65 - @@ -57,7 +66,7 @@ if mutest_dep.found() 66 include_directories: graphene_inc, 67 c_args: common_cflags, 68 install: get_option('installed_tests'), ··· 71 ), 72 env: ['MUTEST_OUTPUT=tap'], 73 protocol: 'tap', 74 -- 75 - 2.22.0 76
··· 1 + From 57bed86429db9d871f1442c94f14e94e38972ca3 Mon Sep 17 00:00:00 2001 2 From: worldofpeace <worldofpeace@protonmail.ch> 3 Date: Thu, 16 May 2019 21:15:15 -0400 4 Subject: [PATCH] meson: add options for tests installation dirs 5 6 --- 7 meson_options.txt | 6 ++++++ 8 + tests/meson.build | 23 ++++++++++++++++------- 9 + 2 files changed, 22 insertions(+), 7 deletions(-) 10 11 diff --git a/meson_options.txt b/meson_options.txt 12 + index b9a2fb5..4b8629f 100644 13 --- a/meson_options.txt 14 +++ b/meson_options.txt 15 + @@ -23,3 +23,9 @@ option('tests', type: 'boolean', 16 option('installed_tests', type: 'boolean', 17 value: true, 18 description: 'Install tests') ··· 23 + value: '', 24 + description: 'Installation directory for binary files in tests') 25 diff --git a/tests/meson.build b/tests/meson.build 26 + index 77281f5..c4c7fac 100644 27 --- a/tests/meson.build 28 +++ b/tests/meson.build 29 + @@ -21,8 +21,17 @@ unit_tests = [ 30 + 31 + gen_installed_test = find_program('gen-installed-test.py') 32 33 -installed_test_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'installed-tests', graphene_api_path) 34 -installed_test_bindir = join_paths(get_option('prefix'), get_option('libexecdir'), 'installed-tests', graphene_api_path) ··· 46 47 # Make tests conditional on having mutest-1 installed system-wide, or 48 # available as a subproject 49 + @@ -40,13 +49,13 @@ if mutest_dep.found() 50 + output: wrapper, 51 command: [ 52 gen_installed_test, 53 - '--testdir=@0@'.format(installed_test_bindir), 54 + '--testdir=@0@'.format(test_bindir), ··· 62 ) 63 64 test(unit, 65 + @@ -55,7 +64,7 @@ if mutest_dep.found() 66 include_directories: graphene_inc, 67 c_args: common_cflags, 68 install: get_option('installed_tests'), ··· 71 ), 72 env: ['MUTEST_OUTPUT=tap'], 73 protocol: 'tap', 74 + @@ -70,13 +79,13 @@ if build_gir and host_system == 'linux' and not meson.is_cross_build() 75 + output: wrapper, 76 + command: [ 77 + gen_installed_test, 78 + - '--testdir=@0@'.format(installed_test_bindir), 79 + + '--testdir=@0@'.format(test_bindir), 80 + '--testname=@0@'.format(unit), 81 + '--outdir=@OUTDIR@', 82 + '--outfile=@0@'.format(wrapper), 83 + ], 84 + install: get_option('installed_tests'), 85 + - install_dir: installed_test_datadir, 86 + + install_dir: test_datadir, 87 + ) 88 + 89 + test(unit, 90 -- 91 + 2.31.1 92
+13 -8
pkgs/development/libraries/graphene/default.nix
··· 16 17 stdenv.mkDerivation rec { 18 pname = "graphene"; 19 - version = "1.10.2"; 20 21 outputs = [ "out" "devdoc" "installedTests" ]; 22 ··· 24 owner = "ebassi"; 25 repo = pname; 26 rev = version; 27 - sha256 = "1ljhhjafi1nlndjswx7mg0d01zci90wz77yvz5w8bd9mm8ssw38s"; 28 }; 29 30 patches = [ 31 ./0001-meson-add-options-for-tests-installation-dirs.patch 32 - ]; 33 - 34 - mesonFlags = [ 35 - "-Dgtk_doc=true" 36 - "-Dinstalled_test_datadir=${placeholder "installedTests"}/share" 37 - "-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec" 38 ]; 39 40 nativeBuildInputs = [ ··· 57 mutest 58 ]; 59 60 doCheck = true; 61 62 passthru = { 63 tests = {
··· 16 17 stdenv.mkDerivation rec { 18 pname = "graphene"; 19 + version = "1.10.6"; 20 21 outputs = [ "out" "devdoc" "installedTests" ]; 22 ··· 24 owner = "ebassi"; 25 repo = pname; 26 rev = version; 27 + sha256 = "v6YH3fRMTzhp7wmU8in9ukcavzHmOAW54EK9ZwQyFxc="; 28 }; 29 30 patches = [ 31 + # Add option for changing installation path of installed tests. 32 ./0001-meson-add-options-for-tests-installation-dirs.patch 33 ]; 34 35 nativeBuildInputs = [ ··· 52 mutest 53 ]; 54 55 + mesonFlags = [ 56 + "-Dgtk_doc=true" 57 + "-Dinstalled_test_datadir=${placeholder "installedTests"}/share" 58 + "-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec" 59 + ]; 60 + 61 doCheck = true; 62 + 63 + postPatch = '' 64 + patchShebangs tests/gen-installed-test.py 65 + ''; 66 67 passthru = { 68 tests = {
+54
pkgs/development/libraries/gtk-frdp/default.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitLab 4 + , meson 5 + , ninja 6 + , pkg-config 7 + , vala 8 + , gobject-introspection 9 + , glib 10 + , gtk3 11 + , freerdp 12 + , nix-update-script 13 + }: 14 + 15 + stdenv.mkDerivation rec { 16 + pname = "gtk-frdp"; 17 + version = "3.37.1-unstable-2020-10-26"; 18 + 19 + src = fetchFromGitLab { 20 + domain = "gitlab.gnome.org"; 21 + owner = "GNOME"; 22 + repo = pname; 23 + rev = "805721e82ca1df6a50da3b5bd3b75d6747016482"; 24 + sha256 = "q/UFKYj3LUkAzll3KeKd6oec0GJnDtTuFMTTatKFlcs="; 25 + }; 26 + 27 + nativeBuildInputs = [ 28 + meson 29 + ninja 30 + pkg-config 31 + vala 32 + gobject-introspection 33 + ]; 34 + 35 + buildInputs = [ 36 + glib 37 + gtk3 38 + freerdp 39 + ]; 40 + 41 + passthru = { 42 + updateScript = nix-update-script { 43 + attrPath = pname; 44 + }; 45 + }; 46 + 47 + meta = with lib; { 48 + homepage = "https://gitlab.gnome.org/GNOME/gtk-frdp"; 49 + description = "RDP viewer widget for GTK"; 50 + maintainers = teams.gnome.members; 51 + license = licenses.lgpl3Plus; 52 + platforms = platforms.unix; 53 + }; 54 + }
+4 -17
pkgs/development/libraries/libportal/default.nix
··· 1 - { lib, stdenv 2 , fetchFromGitHub 3 - , fetchpatch 4 , meson 5 , ninja 6 , pkg-config ··· 12 13 stdenv.mkDerivation rec { 14 pname = "libportal"; 15 - version = "0.3"; 16 17 outputs = [ "out" "dev" "devdoc" ]; 18 ··· 20 owner = "flatpak"; 21 repo = pname; 22 rev = version; 23 - sha256 = "1s3g17zbbmq3m5jfs62fl94p4irln9hfhpybj7jb05z0p1939rk3"; 24 }; 25 - 26 - patches = [ 27 - # Fix build and .pc file 28 - # https://github.com/flatpak/libportal/pull/20 29 - (fetchpatch { 30 - url = "https://github.com/flatpak/libportal/commit/7828be4ec8f05f8de7b129a1e35b5039d8baaee3.patch"; 31 - sha256 = "04nadcxx69mbnzljwjrzm88cgapn14x3mghpkhr8b9yrjn7yj86h"; 32 - }) 33 - (fetchpatch { 34 - url = "https://github.com/flatpak/libportal/commit/bf5de2f6fefec65f701b4ec8712b48b29a33fb71.patch"; 35 - sha256 = "1v0b09diq49c01j5gg2bpvn5f5gfw1a5nm1l8grc4qg4z9jck1z8"; 36 - }) 37 - ]; 38 39 nativeBuildInputs = [ 40 meson
··· 1 + { stdenv 2 + , lib 3 , fetchFromGitHub 4 , meson 5 , ninja 6 , pkg-config ··· 12 13 stdenv.mkDerivation rec { 14 pname = "libportal"; 15 + version = "0.4"; 16 17 outputs = [ "out" "dev" "devdoc" ]; 18 ··· 20 owner = "flatpak"; 21 repo = pname; 22 rev = version; 23 + sha256 = "fuYZWGkdazq6H0rThqpF6KIcvwgc17o+CiISb1LjBso="; 24 }; 25 26 nativeBuildInputs = [ 27 meson
+2 -2
pkgs/development/tools/misc/d-feet/default.nix
··· 16 17 python3.pkgs.buildPythonApplication rec { 18 pname = "d-feet"; 19 - version = "0.3.15"; 20 21 format = "other"; 22 23 src = fetchurl { 24 url = "mirror://gnome/sources/d-feet/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 25 - sha256 = "1cgxgpj546jgpyns6z9nkm5k48lid8s36mvzj8ydkjqws2d19zqz"; 26 }; 27 28 nativeBuildInputs = [
··· 16 17 python3.pkgs.buildPythonApplication rec { 18 pname = "d-feet"; 19 + version = "0.3.16"; 20 21 format = "other"; 22 23 src = fetchurl { 24 url = "mirror://gnome/sources/d-feet/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 25 + sha256 = "hzPOS5qaVOwYWx2Fv02p2dEQUogqiAdg/2D5d5stHMs="; 26 }; 27 28 nativeBuildInputs = [
+2
pkgs/top-level/all-packages.nix
··· 5363 5364 gtkperf = callPackage ../development/tools/misc/gtkperf { }; 5365 5366 gtk-vnc = callPackage ../tools/admin/gtk-vnc {}; 5367 5368 gtmess = callPackage ../applications/networking/instant-messengers/gtmess {
··· 5363 5364 gtkperf = callPackage ../development/tools/misc/gtkperf { }; 5365 5366 + gtk-frdp = callPackage ../development/libraries/gtk-frdp {}; 5367 + 5368 gtk-vnc = callPackage ../tools/admin/gtk-vnc {}; 5369 5370 gtmess = callPackage ../applications/networking/instant-messengers/gtmess {