My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/filesystems/rar2fs/default.nix

39 lines
852 B

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