Merge pull request #245655 from nvmd/sk/fix/czkawka
czkawka: fix build and check on darwin
This commit is contained in:
commit
f2facaf95d
2 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
, atk
|
, atk
|
||||||
, gtk4
|
, gtk4
|
||||||
|
, Foundation
|
||||||
, wrapGAppsHook4
|
, wrapGAppsHook4
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, xvfb-run
|
, xvfb-run
|
||||||
|
@ -41,6 +43,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
atk
|
atk
|
||||||
gtk4
|
gtk4
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
Foundation
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
@ -53,6 +57,9 @@ rustPlatform.buildRustPackage rec {
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = stdenv.hostPlatform.isLinux
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = czkawka;
|
package = czkawka;
|
||||||
command = "czkawka_cli --version";
|
command = "czkawka_cli --version";
|
||||||
|
|
|
@ -4572,7 +4572,9 @@ with pkgs;
|
||||||
|
|
||||||
cowsay = callPackage ../tools/misc/cowsay { };
|
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 { };
|
cherrytree = callPackage ../applications/misc/cherrytree { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue