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
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromSourcehut,
|
|
pkg-config,
|
|
fuse,
|
|
libarchive,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "archivemount";
|
|
version = "1b";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~nabijaczleweli";
|
|
repo = "archivemount-ng";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-QQeVr3kPLVX543PwM2jtMnVQgkEfiQd09hG9VQvqLng=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
fuse
|
|
libarchive
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
dontConfigure = true;
|
|
|
|
# Fix cross-compilation
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace-fail pkg-config "$PKG_CONFIG"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Gateway between FUSE and libarchive: allows mounting of cpio, .tar.gz, .tar.bz2 archives";
|
|
changelog = "https://git.sr.ht/~nabijaczleweli/archivemount-ng/refs/${finalAttrs.version}";
|
|
mainProgram = "archivemount";
|
|
license = [
|
|
lib.licenses.lgpl2Plus
|
|
lib.licenses.bsd0
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|