nixpkgs/pkgs/tools/filesystems/rar2fs/default.nix

40 lines
855 B
Nix
Raw Normal View History

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