52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
gdk-pixbuf,
|
|
gtk4,
|
|
libadwaita,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "fclones-gui";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkolaczk";
|
|
repo = "fclones-gui";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ad7wyoCjSQ8i6c+4IorImqAY2Q6pwBtI2JkkbkGa46U=";
|
|
};
|
|
|
|
cargoHash = "sha256-01HNWhHfbun+Er39eN5tEmqXMGDsBQrZtVTA9R7kifo=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
gtk4
|
|
libadwaita
|
|
];
|
|
|
|
postInstall = ''
|
|
substituteInPlace snap/gui/fclones-gui.desktop \
|
|
--replace-fail 'Icon=''${SNAP}/meta/gui/fclones-gui.png' "Icon=fclones-gui"
|
|
install -Dm 0644 snap/gui/fclones-gui.desktop -t $out/share/applications
|
|
install -Dm 0644 snap/gui/fclones-gui.png -t $out/share/icons/hicolor/256x256/apps
|
|
'';
|
|
|
|
meta = {
|
|
description = "Interactive duplicate file remover";
|
|
mainProgram = "fclones-gui";
|
|
homepage = "https://github.com/pkolaczk/fclones-gui";
|
|
changelog = "https://github.com/pkolaczk/fclones-gui/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = builtins.attrValues { inherit (lib.maintainers) figsoda; };
|
|
};
|
|
})
|