Merge pull request #81431 from jtojnar/malcontent-0.6
malcontent: 0.4.0 → 0.6.0
This commit is contained in:
commit
6bba9428d9
|
@ -297,6 +297,7 @@
|
||||||
./services/desktops/geoclue2.nix
|
./services/desktops/geoclue2.nix
|
||||||
./services/desktops/gsignond.nix
|
./services/desktops/gsignond.nix
|
||||||
./services/desktops/gvfs.nix
|
./services/desktops/gvfs.nix
|
||||||
|
./services/desktops/malcontent.nix
|
||||||
./services/desktops/pipewire.nix
|
./services/desktops/pipewire.nix
|
||||||
./services/desktops/gnome3/at-spi2-core.nix
|
./services/desktops/gnome3/at-spi2-core.nix
|
||||||
./services/desktops/gnome3/chrome-gnome-shell.nix
|
./services/desktops/gnome3/chrome-gnome-shell.nix
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Malcontent daemon.
|
||||||
|
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
###### interface
|
||||||
|
|
||||||
|
options = {
|
||||||
|
|
||||||
|
services.malcontent = {
|
||||||
|
|
||||||
|
enable = mkEnableOption "Malcontent";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
###### implementation
|
||||||
|
|
||||||
|
config = mkIf config.services.malcontent.enable {
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.malcontent ];
|
||||||
|
|
||||||
|
services.dbus.packages = [ pkgs.malcontent ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -36,7 +36,6 @@
|
||||||
, desktop-file-utils
|
, desktop-file-utils
|
||||||
, gtk3
|
, gtk3
|
||||||
, fuse
|
, fuse
|
||||||
, malcontent
|
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, libsoup
|
, libsoup
|
||||||
, lzma
|
, lzma
|
||||||
|
@ -140,7 +139,6 @@ stdenv.mkDerivation rec {
|
||||||
systemd
|
systemd
|
||||||
xorg.libXau
|
xorg.libXau
|
||||||
fuse
|
fuse
|
||||||
malcontent
|
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
glib-networking
|
glib-networking
|
||||||
librsvg # for flatpak-validate-icon
|
librsvg # for flatpak-validate-icon
|
||||||
|
|
|
@ -7,7 +7,12 @@
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, glib
|
, glib
|
||||||
, coreutils
|
, coreutils
|
||||||
|
, accountsservice
|
||||||
, dbus
|
, dbus
|
||||||
|
, flatpak
|
||||||
|
, gtk3
|
||||||
|
, pam
|
||||||
|
, desktop-file-utils
|
||||||
, polkit
|
, polkit
|
||||||
, glib-testing
|
, glib-testing
|
||||||
, python3
|
, python3
|
||||||
|
@ -16,7 +21,7 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "malcontent";
|
pname = "malcontent";
|
||||||
version = "0.4.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
outputs = [ "bin" "out" "dev" "man" "installedTests" ];
|
outputs = [ "bin" "out" "dev" "man" "installedTests" ];
|
||||||
|
|
||||||
|
@ -25,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "pwithnall";
|
owner = "pwithnall";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0d703r20djvrgy711jvn90i8dwbb0p7qj4j43z101afpkiizq810";
|
sha256 = "COh6N3CmLIcxx6tW4jcP0m6TZv0Z1YJUM/nlG0RzYHQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -42,11 +47,16 @@ stdenv.mkDerivation rec {
|
||||||
ninja
|
ninja
|
||||||
pkgconfig
|
pkgconfig
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
desktop-file-utils
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
accountsservice
|
||||||
dbus
|
dbus
|
||||||
|
flatpak
|
||||||
|
gtk3
|
||||||
|
pam
|
||||||
polkit
|
polkit
|
||||||
glib-testing
|
glib-testing
|
||||||
(python3.withPackages (pp: with pp; [
|
(python3.withPackages (pp: with pp; [
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
diff --git a/libmalcontent/tests/meson.build b/libmalcontent/tests/meson.build
|
diff --git a/libmalcontent/tests/meson.build b/libmalcontent/tests/meson.build
|
||||||
index a8a815a..0b1d242 100644
|
index 610bc35..13e0713 100644
|
||||||
--- a/libmalcontent/tests/meson.build
|
--- a/libmalcontent/tests/meson.build
|
||||||
+++ b/libmalcontent/tests/meson.build
|
+++ b/libmalcontent/tests/meson.build
|
||||||
@@ -61,9 +61,9 @@ test_programs = [
|
@@ -72,9 +72,9 @@ test_programs = [
|
||||||
], deps],
|
], deps],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ index a8a815a..0b1d242 100644
|
||||||
'libmalcontent-' + libmalcontent_api_version)
|
'libmalcontent-' + libmalcontent_api_version)
|
||||||
|
|
||||||
foreach program: test_programs
|
foreach program: test_programs
|
||||||
@@ -94,4 +94,4 @@ foreach program: test_programs
|
@@ -105,4 +105,4 @@ foreach program: test_programs
|
||||||
env: envs,
|
env: envs,
|
||||||
args: ['--tap'],
|
args: ['--tap'],
|
||||||
)
|
)
|
||||||
|
@ -22,14 +22,32 @@ index a8a815a..0b1d242 100644
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
+endforeach
|
+endforeach
|
||||||
diff --git a/meson_options.txt b/meson_options.txt
|
diff --git a/meson_options.txt b/meson_options.txt
|
||||||
index 96a517d..7cb1ee8 100644
|
index 06329d4..72aa505 100644
|
||||||
--- a/meson_options.txt
|
--- a/meson_options.txt
|
||||||
+++ b/meson_options.txt
|
+++ b/meson_options.txt
|
||||||
@@ -3,4 +3,5 @@ option(
|
@@ -9,3 +9,9 @@ option(
|
||||||
type: 'boolean',
|
type: 'string',
|
||||||
value: false,
|
description: 'directory for PAM modules'
|
||||||
description: 'enable installed tests'
|
)
|
||||||
-)
|
+option(
|
||||||
\ No newline at end of file
|
+ 'installed_test_prefix',
|
||||||
|
+ type: 'string',
|
||||||
|
+ value: '',
|
||||||
|
+ description: 'Prefix for installed tests'
|
||||||
+)
|
+)
|
||||||
+option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')
|
diff --git a/pam/tests/meson.build b/pam/tests/meson.build
|
||||||
|
index 0560dcb..a74dab2 100644
|
||||||
|
--- a/pam/tests/meson.build
|
||||||
|
+++ b/pam/tests/meson.build
|
||||||
|
@@ -12,9 +12,9 @@ test_programs = [
|
||||||
|
['pam_malcontent', [], deps],
|
||||||
|
]
|
||||||
|
|
||||||
|
-installed_tests_metadir = join_paths(datadir, 'installed-tests',
|
||||||
|
+installed_tests_metadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests',
|
||||||
|
'libmalcontent-' + libmalcontent_api_version)
|
||||||
|
-installed_tests_execdir = join_paths(libexecdir, 'installed-tests',
|
||||||
|
+installed_tests_execdir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests',
|
||||||
|
'libmalcontent-' + libmalcontent_api_version)
|
||||||
|
|
||||||
|
foreach program: test_programs
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
diff --git a/meson.build b/meson.build
|
diff --git a/meson.build b/meson.build
|
||||||
index f4a05ba..dd31537 100644
|
index 3575224..0abea63 100644
|
||||||
--- a/meson.build
|
--- a/meson.build
|
||||||
+++ b/meson.build
|
+++ b/meson.build
|
||||||
@@ -33,9 +33,8 @@ polkit_gobject = dependency('polkit-gobject-1')
|
@@ -40,9 +40,8 @@ polkit_gobject = dependency('polkit-gobject-1')
|
||||||
polkitpolicydir = polkit_gobject.get_pkgconfig_variable('policydir',
|
polkitpolicydir = polkit_gobject.get_pkgconfig_variable('policydir',
|
||||||
define_variable: ['prefix', prefix])
|
define_variable: ['prefix', prefix])
|
||||||
|
|
||||||
|
@ -13,10 +13,3 @@ index f4a05ba..dd31537 100644
|
||||||
fallback: ['libglib-testing', 'libglib_testing_dep'],
|
fallback: ['libglib-testing', 'libglib_testing_dep'],
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -120,4 +119,4 @@ test_env = [
|
|
||||||
|
|
||||||
subdir('accounts-service')
|
|
||||||
subdir('malcontent-client')
|
|
||||||
-subdir('libmalcontent')
|
|
||||||
\ No newline at end of file
|
|
||||||
+subdir('libmalcontent')
|
|
||||||
|
|
Loading…
Reference in New Issue