Skip to content

Commit

Permalink
Merge pull request #262118 from OPNA2608/init/lomiri/libayatana-commo…
Browse files Browse the repository at this point in the history
…n_lomiri_features

libayatana-common: Enable Lomiri features
  • Loading branch information
a-n-n-a-l-e-e authored Jan 18, 2024
2 parents aaae35a + 2e7ed08 commit 2e269dc
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 @@ -22429,9 +22429,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 2e269dc

Please sign in to comment.