wingpanel-indicator-namarupa: init at 0.0.0-unstable-2024-12-17 (#366867)

authored by Bobby Rong and committed by GitHub e48e1c12 327580e1

+96
+32
pkgs/by-name/wi/wingpanel-indicator-namarupa/fix-meson-build.patch
··· 1 + diff --git a/meson.build b/meson.build 2 + index 47a0da6..7aa49f4 100644 3 + --- a/meson.build 4 + +++ b/meson.build 5 + @@ -8,6 +8,9 @@ project( 6 + gettext_name = meson.project_name() + '-indicator' 7 + i18n = import('i18n') 8 + 9 + +prefix = get_option('prefix') 10 + +libdir = prefix / get_option('libdir') 11 + + 12 + add_global_arguments( 13 + '-DGETTEXT_PACKAGE="@0@"'.format(gettext_name), 14 + language:'c' 15 + @@ -25,7 +28,7 @@ add_project_arguments( 16 + config_data = configuration_data() 17 + config_data.set_quoted('GETTEXT_PACKAGE', gettext_name) 18 + config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir')) 19 + -config_data.set_quoted('AYATANAINDICATORDIR', dependency('indicator3-0.4').get_variable('indicatordir')) 20 + +config_data.set_quoted('AYATANAINDICATORDIR', '@indicator_application@/lib/indicators3/7/') 21 + 22 + shared_module( 23 + meson.project_name(), 24 + @@ -44,7 +47,7 @@ shared_module( 25 + dependency('indicator3-0.4') 26 + ], 27 + install: true, 28 + - install_dir : dependency('wingpanel').get_variable('indicatorsdir') 29 + + install_dir : dependency('wingpanel').get_variable('indicatorsdir', pkgconfig_define: ['libdir', libdir]) 30 + ) 31 + 32 + subdir('po')
+64
pkgs/by-name/wi/wingpanel-indicator-namarupa/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + unstableGitUpdater, 6 + replaceVars, 7 + meson, 8 + ninja, 9 + pkg-config, 10 + vala, 11 + gtk3, 12 + libgee, 13 + libindicator-gtk3, 14 + pantheon, 15 + indicator-application-gtk3, 16 + }: 17 + 18 + stdenv.mkDerivation rec { 19 + pname = "wingpanel-indicator-namarupa"; 20 + version = "0.0.0-unstable-2024-12-17"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "lenemter"; 24 + repo = pname; 25 + rev = "d9fc4e47d58c72e0cf08aa11246910ce84fcef50"; 26 + sha256 = "sha256-8jzhrCMkP5ui964JRZUs+tl2ShxeB8q60fBUI4okrpg="; 27 + }; 28 + 29 + patches = [ 30 + # Tells the indicator the path for libapplication.so 31 + (replaceVars ./fix-meson-build.patch { 32 + indicator_application = indicator-application-gtk3; 33 + }) 34 + ]; 35 + 36 + nativeBuildInputs = [ 37 + meson 38 + ninja 39 + pkg-config 40 + vala 41 + ]; 42 + 43 + buildInputs = [ 44 + gtk3 45 + libgee 46 + libindicator-gtk3 47 + pantheon.granite 48 + pantheon.wingpanel 49 + ]; 50 + 51 + passthru = { 52 + updateScript = unstableGitUpdater { 53 + url = "https://github.com/lenemter/wingpanel-indicator-namarupa.git"; 54 + }; 55 + }; 56 + 57 + meta = with lib; { 58 + description = "Wingpanel Namarupa Indicator (Ayatana support)"; 59 + homepage = "https://github.com/lenemter/wingpanel-indicator-namarupa"; 60 + license = licenses.lgpl21Plus; 61 + platforms = platforms.linux; 62 + maintainers = teams.pantheon.members; 63 + }; 64 + }