czkawka: fix build and check on darwin
This commit is contained in:
parent
6f942c2e08
commit
3f42dcce7d
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
@ -8,6 +9,7 @@
|
||||
, gdk-pixbuf
|
||||
, atk
|
||||
, gtk4
|
||||
, Foundation
|
||||
, wrapGAppsHook4
|
||||
, gobject-introspection
|
||||
, xvfb-run
|
||||
@ -41,6 +43,8 @@ rustPlatform.buildRustPackage rec {
|
||||
gdk-pixbuf
|
||||
atk
|
||||
gtk4
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
Foundation
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@ -53,6 +57,9 @@ rustPlatform.buildRustPackage rec {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
doCheck = stdenv.hostPlatform.isLinux
|
||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = czkawka;
|
||||
command = "czkawka_cli --version";
|
||||
|
@ -4566,7 +4566,9 @@ with pkgs;
|
||||
|
||||
cowsay = callPackage ../tools/misc/cowsay { };
|
||||
|
||||
czkawka = callPackage ../tools/misc/czkawka { };
|
||||
czkawka = callPackage ../tools/misc/czkawka {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||
};
|
||||
|
||||
cherrytree = callPackage ../applications/misc/cherrytree { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user