Skip to content

Commit

Permalink
czkawka: migrate to new apple-sdk platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahec committed Nov 13, 2024
1 parent 8f683c8 commit 8a18342
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions pkgs/by-name/cz/czkawka/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
atk,
cairo,
callPackage,
darwin,
fetchFromGitHub,
gdk-pixbuf,
glib,
Expand Down Expand Up @@ -44,22 +43,14 @@ let
wrapGAppsHook4
];

buildInputs =
[
atk
cairo
gdk-pixbuf
glib
gtk4
pango
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
Foundation
]
);
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk4
pango
];

nativeCheckInputs = [ xvfb-run ];

Expand All @@ -81,9 +72,7 @@ let
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
'';

nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
Expand All @@ -93,9 +82,7 @@ let
package = self;
command = "czkawka_cli --version";
};
wrapper = callPackage ./wrapper.nix {
czkawka = self;
};
wrapper = callPackage ./wrapper.nix { czkawka = self; };
};

meta = {
Expand Down

0 comments on commit 8a18342

Please sign in to comment.