2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, fuse
|
|
|
|
, unrar
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rar2fs";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.29.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hasse69";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-x3QBnnwt9pXT0egOJ2rnUcZP99y9eVcw3rNTkdH2LYs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace get-version.sh \
|
|
|
|
--replace "which echo" "echo"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ fuse unrar ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-unrar=${unrar.dev}/include/unrar"
|
|
|
|
"--disable-static-unrar"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "FUSE file system for reading RAR archives";
|
|
|
|
homepage = "https://hasse69.github.io/rar2fs/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ kraem ];
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|