summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorkraem <ebrin.ronnie@protonmail.com>2020-01-21 19:35:22 +0100
committerMichael Weiss <dev.primeos@gmail.com>2020-01-23 21:16:20 +0100
commit04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea (patch)
tree95c29289be0be013b18b3cd63a56943334fb6c52 /pkgs/tools
parent89f80c0a907292df86779a0d62adda894ba598ec (diff)
downloadnixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar.gz
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar.bz2
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar.lz
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar.xz
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.tar.zst
nixpkgs-04bf042e2f57f6e9d452cc3ed05c5c341b00b2ea.zip
rar2fs: init at 1.28.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/filesystems/rar2fs/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/rar2fs/default.nix b/pkgs/tools/filesystems/rar2fs/default.nix
new file mode 100644
index 00000000000..996e3c52ec2
--- /dev/null
+++ b/pkgs/tools/filesystems/rar2fs/default.nix
@@ -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;
+  };
+}