Merge pull request #278783 from atorres1985-contrib/czkawka
Czkawka: rewrite
This commit is contained in:
commit
3602153ce7
@ -1,23 +1,23 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, rustPlatform
|
|
||||||
, fetchFromGitHub
|
|
||||||
, pkg-config
|
|
||||||
, glib
|
|
||||||
, cairo
|
|
||||||
, pango
|
|
||||||
, gdk-pixbuf
|
|
||||||
, atk
|
, atk
|
||||||
, gtk4
|
, cairo
|
||||||
, Foundation
|
|
||||||
, wrapGAppsHook4
|
|
||||||
, gobject-introspection
|
|
||||||
, xvfb-run
|
|
||||||
, testers
|
|
||||||
, czkawka
|
, czkawka
|
||||||
|
, darwin
|
||||||
|
, fetchFromGitHub
|
||||||
|
, gdk-pixbuf
|
||||||
|
, glib
|
||||||
|
, gobject-introspection
|
||||||
|
, gtk4
|
||||||
|
, pango
|
||||||
|
, pkg-config
|
||||||
|
, rustPlatform
|
||||||
|
, testers
|
||||||
|
, wrapGAppsHook4
|
||||||
|
, xvfb-run
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
let
|
||||||
pname = "czkawka";
|
pname = "czkawka";
|
||||||
version = "6.1.0";
|
version = "6.1.0";
|
||||||
|
|
||||||
@ -27,30 +27,34 @@ rustPlatform.buildRustPackage rec {
|
|||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-uKmiBNwuu3Eduf0v3p2VYYNf6mgxJTBUsYs+tKZQZys=";
|
hash = "sha256-uKmiBNwuu3Eduf0v3p2VYYNf6mgxJTBUsYs+tKZQZys=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-iBO99kpITVl7ySlXPkEg2YecS1lonVx9CbKt9WI180s=";
|
cargoHash = "sha256-iBO99kpITVl7ySlXPkEg2YecS1lonVx9CbKt9WI180s=";
|
||||||
|
in
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
inherit pname version src cargoHash;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
gobject-introspection
|
||||||
pkg-config
|
pkg-config
|
||||||
wrapGAppsHook4
|
wrapGAppsHook4
|
||||||
gobject-introspection
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib
|
|
||||||
cairo
|
|
||||||
pango
|
|
||||||
gdk-pixbuf
|
|
||||||
atk
|
atk
|
||||||
|
cairo
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
gtk4
|
gtk4
|
||||||
|
pango
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
Foundation
|
darwin.apple_sdk.frameworks.Foundation
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
xvfb-run
|
xvfb-run
|
||||||
];
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
xvfb-run cargo test
|
xvfb-run cargo test
|
||||||
@ -65,23 +69,20 @@ rustPlatform.buildRustPackage rec {
|
|||||||
command = "czkawka_cli --version";
|
command = "czkawka_cli --version";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Desktop items, icons and metainfo are not installed automatically
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install Icons
|
install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop
|
||||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg
|
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg
|
||||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg
|
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg
|
||||||
|
|
||||||
# Install MetaInfo
|
|
||||||
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
|
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
|
||||||
|
|
||||||
# Install Desktop Entry
|
|
||||||
install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
changelog = "https://github.com/qarmin/czkawka/raw/${version}/Changelog.md";
|
changelog = "https://github.com/qarmin/czkawka/raw/${version}/Changelog.md";
|
||||||
description = "A simple, fast and easy to use app to remove unnecessary files from your computer";
|
description = "A simple, fast and easy to use app to remove unnecessary files from your computer";
|
||||||
homepage = "https://github.com/qarmin/czkawka";
|
homepage = "https://github.com/qarmin/czkawka";
|
||||||
license = with licenses; [ mit ];
|
license = with lib.licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ yanganto _0x4A6F ];
|
mainProgram = "czkawka_gui";
|
||||||
|
maintainers = with lib.maintainers; [ AndersonTorres yanganto _0x4A6F ];
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -4780,10 +4780,6 @@ with pkgs;
|
|||||||
|
|
||||||
fw-ectool = callPackage ../os-specific/linux/fw-ectool { };
|
fw-ectool = callPackage ../os-specific/linux/fw-ectool { };
|
||||||
|
|
||||||
czkawka = callPackage ../tools/misc/czkawka {
|
|
||||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
|
||||||
};
|
|
||||||
|
|
||||||
chayang = callPackage ../tools/wayland/chayang { };
|
chayang = callPackage ../tools/wayland/chayang { };
|
||||||
|
|
||||||
cherrytree = callPackage ../applications/misc/cherrytree { };
|
cherrytree = callPackage ../applications/misc/cherrytree { };
|
||||||
|
Loading…
Reference in New Issue
Block a user