libsecret: fix build on darwin

Remove unnecessary xvfb-run, accidentally re-introduced in
https://github.com/NixOS/nixpkgs/commit/a42ca0678b548d47b1bda46259c5b02b5d54c019

And only run tests on Linux, since gjs dependency is not supported on Darwin.
This commit is contained in:
Jan Tojnar
2022-04-06 03:34:36 +02:00
parent 6e2cc949bc
commit e15ae73b7a
@@ -18,7 +18,6 @@
, gjs
, libintl
, dbus
, xvfb-run
}:
stdenv.mkDerivation rec {
@@ -59,16 +58,14 @@ stdenv.mkDerivation rec {
python3
python3.pkgs.dbus-python
python3.pkgs.pygobject3
xvfb-run
dbus
gjs
];
doCheck = true;
doCheck = stdenv.isLinux;
postPatch = ''
patchShebangs .
patchShebangs ./tool/test-*.sh
'';
preCheck = ''