2020-01-21 19:35:22 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, fuse
|
|
|
|
, unrar
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rar2fs";
|
2020-11-12 00:11:58 +01:00
|
|
|
version = "1.29.2";
|
2020-01-21 19:35:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hasse69";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-12 00:11:58 +01:00
|
|
|
sha256 = "0j7ai0gcbln2lyfc87xxmj0zpf3lnqa6fdm5rar3kdqhczb7s93y";
|
2020-01-21 19:35:22 +01: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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "FUSE file system for reading RAR archives";
|
2020-03-14 13:31:35 +01:00
|
|
|
homepage = "https://hasse69.github.io/rar2fs/";
|
2020-01-21 19:35:22 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ kraem ];
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
};
|
|
|
|
}
|