Files
nixpkgs/pkgs/by-name/xa/xarchiver/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

77 lines
1.3 KiB
Nix

{
lib,
stdenv,
bash,
fetchFromGitHub,
gtk3,
pkg-config,
intltool,
libxslt,
makeWrapper,
coreutils,
zip,
unzip,
p7zip,
unar,
gnutar,
bzip2,
gzip,
lhasa,
wrapGAppsHook3,
desktopToDarwinBundle,
}:
stdenv.mkDerivation rec {
version = "0.5.4.26";
pname = "xarchiver";
src = fetchFromGitHub {
owner = "ib";
repo = "xarchiver";
rev = version;
hash = "sha256-s6lVKtWJRAFrkUYUwKGH+XNTGi/L+Zt0kSWIekBUWYs=";
};
nativeBuildInputs = [
intltool
libxslt
makeWrapper
pkg-config
wrapGAppsHook3
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
buildInputs = [
gtk3
bash # so patchShebangs can patch #!/bin/sh in xarchiver.tap
];
postFixup = ''
wrapProgram $out/bin/xarchiver \
--prefix PATH : ${
lib.makeBinPath [
zip
unzip
p7zip
unar
gnutar
bzip2
gzip
lhasa
coreutils
]
}
'';
strictDeps = true;
meta = {
description = "GTK frontend to 7z,zip,rar,tar,bzip2, gzip,arj, lha, rpm and deb (open and extract only)";
homepage = "https://github.com/ib/xarchiver";
maintainers = [ ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
mainProgram = "xarchiver";
};
}