blob: 996e3c52ec29a95fd9b75c764c8adf2d4851f5ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ stdenv
, fetchFromGitHub
, autoreconfHook
, fuse
, unrar
}:
stdenv.mkDerivation rec {
pname = "rar2fs";
version = "1.28.0";
src = fetchFromGitHub {
owner = "hasse69";
repo = pname;
rev = "v${version}";
sha256 = "0fmdqrs5yvn89ngc26vj5ggnalpwrdm8pdcfszw1wflh78hvd8kb";
};
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";
homepage = https://hasse69.github.io/rar2fs/;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kraem ];
platforms = with platforms; linux ++ freebsd;
};
}
|