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
77 lines
1.3 KiB
Nix
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";
|
|
};
|
|
}
|