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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
858 B
Nix
Raw Normal View History

{ lib
, stdenv
2020-01-21 18:35:22 +00:00
, fetchFromGitHub
, autoreconfHook
, fuse
2024-02-29 19:23:57 +00:00
, unrar_6
2020-01-21 18:35:22 +00:00
}:
stdenv.mkDerivation rec {
pname = "rar2fs";
2023-01-12 09:51:53 +00:00
version = "1.29.6";
2020-01-21 18:35:22 +00:00
src = fetchFromGitHub {
owner = "hasse69";
repo = pname;
rev = "v${version}";
2023-01-12 09:51:53 +00:00
sha256 = "sha256-b8zMCzSFJewXMQOuaKwMJx//Wq9vT/bUj6XS/jDBBBo=";
2020-01-21 18:35:22 +00:00
};
postPatch = ''
substituteInPlace get-version.sh \
--replace "which echo" "echo"
'';
nativeBuildInputs = [ autoreconfHook ];
2024-02-29 19:23:57 +00:00
buildInputs = [ fuse unrar_6 ];
2020-01-21 18:35:22 +00:00
configureFlags = [
2024-02-29 19:23:57 +00:00
"--with-unrar=${unrar_6.src}/unrar"
2020-01-21 18:35:22 +00:00
"--disable-static-unrar"
];
meta = with lib; {
2020-01-21 18:35:22 +00:00
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 wegank ];
2020-01-21 18:35:22 +00:00
platforms = with platforms; linux ++ freebsd;
};
}