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
48 lines
891 B
Nix
48 lines
891 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
fuse2,
|
|
unrar,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rar2fs";
|
|
version = "1.29.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hasse69";
|
|
repo = "rar2fs";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iYlmNtaJZrnsNNNlaoV1Vu6PHrHIr/glhgs3784JCm4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace get-version.sh \
|
|
--replace "which echo" "echo"
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [
|
|
fuse2
|
|
unrar
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-unrar=${unrar.src}/unrar"
|
|
"--disable-static-unrar"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "FUSE file system for reading RAR archives";
|
|
homepage = "https://hasse69.github.io/rar2fs/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [
|
|
kraem
|
|
wegank
|
|
];
|
|
platforms = with platforms; linux ++ freebsd;
|
|
};
|
|
}
|