Merge pull request #78189 from kraem/master

rar2fs: init at 1.28.0
This commit is contained in:
Michael Weiss 2020-01-24 18:29:38 +01:00 committed by GitHub
commit 7c08ba312b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 1 deletions

View File

@ -3818,6 +3818,12 @@
githubId = 787421;
name = "Kevin Quick";
};
kraem = {
email = "me@kraem.xyz";
github = "kraem";
githubId = 26622971;
name = "Ronnie Ebrin";
};
kragniz = {
email = "louis@kragniz.eu";
github = "kragniz";

View File

@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
make lib
'';
outputs = [ "out" "dev" ];
installPhase = ''
install -Dt "$out/bin" unrar
@ -30,7 +32,8 @@ stdenv.mkDerivation rec {
$out/share/doc/unrar
install -Dm755 libunrar.so $out/lib/libunrar.so
install -D dll.hpp $out/include/unrar/dll.hpp
install -Dt $dev/include/unrar/ *.hpp
'';
setupHook = ./setup-hook.sh;

View File

@ -0,0 +1,39 @@
{ stdenv
, fetchFromGitHub
, autoreconfHook
, fuse
, unrar
}:
stdenv.mkDerivation rec {
pname = "rar2fs";
version = "1.28.0";
src = fetchFromGitHub {
owner = "hasse69";
repo = pname;
rev = "v${version}";
sha256 = "0fmdqrs5yvn89ngc26vj5ggnalpwrdm8pdcfszw1wflh78hvd8kb";
};
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";
homepage = https://hasse69.github.io/rar2fs/;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kraem ];
platforms = with platforms; linux ++ freebsd;
};
}

View File

@ -2971,6 +2971,8 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
rar2fs = callPackage ../tools/filesystems/rar2fs { };
s-tar = callPackage ../tools/archivers/s-tar {};
sonota = callPackage ../tools/misc/sonota { };