Files
nixpkgs/pkgs/by-name/fc/fclones-gui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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; };
};
})