mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
9d57599d7d
rar2fs: fix build
41 lines
852 B
Nix
41 lines
852 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, fuse
|
|
, unrar
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rar2fs";
|
|
version = "1.29.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hasse69";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-b8zMCzSFJewXMQOuaKwMJx//Wq9vT/bUj6XS/jDBBBo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace get-version.sh \
|
|
--replace "which echo" "echo"
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ fuse unrar ];
|
|
|
|
configureFlags = [
|
|
"--with-unrar=${unrar.src}/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 wegank ];
|
|
platforms = with platforms; linux ++ freebsd;
|
|
};
|
|
}
|