nixpkgs/pkgs/tools/filesystems/rar2fs/default.nix
2021-02-03 21:57:28 +00:00

40 lines
852 B
Nix

{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, fuse
, unrar
}:
stdenv.mkDerivation rec {
pname = "rar2fs";
version = "1.29.4";
src = fetchFromGitHub {
owner = "hasse69";
repo = pname;
rev = "v${version}";
sha256 = "sha256-O14KuzngzsGazvwz3FCPe0SplO8I6CPJjpCLBPcZq6k=";
};
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 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;
};
}