mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 01:53:09 +09:00
xdg-desktop-portal: fix cross
This commit is contained in:
parent
ff74c3e444
commit
d3f5b059bb
1 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
nativeBuildInputs = [
|
||||
docutils # for rst2man
|
||||
glib
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
|
@ -169,6 +170,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
export LD_PRELOAD=${lib.getLib umockdev}/lib/libumockdev-preload.so
|
||||
'';
|
||||
|
||||
# We can't disable the installedTests output when doCheck is disabled,
|
||||
# because that produces an infinite recursion.
|
||||
preFixup = lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
|
||||
mkdir $installedTests
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
installedTests = nixosTests.installed-tests.xdg-desktop-portal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue