Skip to content

Commit d3f5b05

Browse files
committed
xdg-desktop-portal: fix cross
1 parent ff74c3e commit d3f5b05

File tree

1 file changed

+7
-0
lines changed
  • pkgs/development/libraries/xdg-desktop-portal

1 file changed

+7
-0
lines changed

pkgs/development/libraries/xdg-desktop-portal/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
7676

7777
nativeBuildInputs = [
7878
docutils # for rst2man
79+
glib
7980
meson
8081
ninja
8182
pkg-config
@@ -169,6 +170,12 @@ stdenv.mkDerivation (finalAttrs: {
169170
export LD_PRELOAD=${lib.getLib umockdev}/lib/libumockdev-preload.so
170171
'';
171172

173+
# We can't disable the installedTests output when doCheck is disabled,
174+
# because that produces an infinite recursion.
175+
preFixup = lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
176+
mkdir $installedTests
177+
'';
178+
172179
passthru = {
173180
tests = {
174181
installedTests = nixosTests.installed-tests.xdg-desktop-portal;

0 commit comments

Comments
 (0)