Skip to content

Commit

Permalink
libayatana-common: Enable Lomiri features
Browse files Browse the repository at this point in the history
  • Loading branch information
OPNA2608 committed Jan 14, 2024
1 parent 2158a9a commit 2e7ed08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 5 additions & 4 deletions pkgs/development/libraries/libayatana-common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
, gitUpdater
, testers
, cmake
, cmake-extras
, glib
, gobject-introspection
, gtest
, intltool
, lomiri
, pkg-config
, systemd
, vala
Expand All @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
# Queries via pkg_get_variable, can't override prefix
substituteInPlace data/CMakeLists.txt \
--replace 'DESTINATION "''${SYSTEMD_USER_UNIT_DIR}"' 'DESTINATION "${placeholder "out"}/lib/systemd/user"'
--replace 'pkg_get_variable(SYSTEMD_USER_UNIT_DIR systemd systemd_user_unit_dir)' 'set(SYSTEMD_USER_UNIT_DIR ''${CMAKE_INSTALL_PREFIX}/lib/systemd/user)'
'';

strictDeps = true;
Expand All @@ -42,8 +42,9 @@ stdenv.mkDerivation (finalAttrs: {
];

buildInputs = [
cmake-extras
lomiri.cmake-extras
glib
lomiri.lomiri-url-dispatcher
systemd
];

Expand All @@ -53,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {

cmakeFlags = [
"-DENABLE_TESTS=${lib.boolToString finalAttrs.finalPackage.doCheck}"
"-DENABLE_LOMIRI_FEATURES=OFF"
"-DENABLE_LOMIRI_FEATURES=ON"
"-DGSETTINGS_LOCALINSTALL=ON"
"-DGSETTINGS_COMPILE=ON"
];
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22437,9 +22437,7 @@ with pkgs;

libavif = callPackage ../development/libraries/libavif { };

libayatana-common = callPackage ../development/libraries/libayatana-common {
inherit (lomiri) cmake-extras;
};
libayatana-common = callPackage ../development/libraries/libayatana-common { };

libb2 = callPackage ../development/libraries/libb2 { };

Expand Down

0 comments on commit 2e7ed08

Please sign in to comment.