mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
rar2fs: init at 1.28.0
This commit is contained in:
parent
89f80c0a90
commit
04bf042e2f
2 changed files with 41 additions and 0 deletions
39
pkgs/tools/filesystems/rar2fs/default.nix
Normal file
39
pkgs/tools/filesystems/rar2fs/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -2958,6 +2958,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 { };
|
||||
|
|
Loading…
Reference in a new issue