From 401b766299e96092043ac36b316af26e748a8a54 Mon Sep 17 00:00:00 2001 From: Igor Sharonov Date: Sun, 18 Oct 2015 16:47:04 +0300 Subject: [PATCH] fuse-7z-ng: init at git-2014-06-08 --- pkgs/tools/filesystems/fuse-7z-ng/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/filesystems/fuse-7z-ng/default.nix diff --git a/pkgs/tools/filesystems/fuse-7z-ng/default.nix b/pkgs/tools/filesystems/fuse-7z-ng/default.nix new file mode 100644 index 000000000000..4e8df9cacbe2 --- /dev/null +++ b/pkgs/tools/filesystems/fuse-7z-ng/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, fuse, p7zip, autoconf, automake, pkgconfig, makeWrapper }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "fuse-7z-ng"; + version = "git-2014-06-08"; + + src = fetchFromGitHub { + owner = "kedazo"; + repo = pname; + rev = "eb5efb1f304c2b7bc2e0389ba06c9bf2ac4b932c"; + sha256 = "17v1gcmg5q661b047zxjar735i4d3508dimw1x3z1pk4d1zjhp3x"; + }; + + buildInputs = [ fuse autoconf automake pkgconfig makeWrapper ]; + + preConfigure = "./autogen.sh"; + + libs = stdenv.lib.makeLibraryPath [ p7zip ]; # 'cause 7z.so is loaded manually + postInstall = '' + wrapProgram $out/bin/${pname} --suffix LD_LIBRARY_PATH : "${libs}/p7zip" + + mkdir -p $out/share/doc/${pname} + cp TODO README NEWS COPYING ChangeLog AUTHORS $out/share/doc/${pname}/ + ''; + + meta = with stdenv.lib; { + inherit version; + inherit (src.homepage); + description = "A FUSE-based filesystem that uses the p7zip library"; + platforms = platforms.linux; + license = licenses.gpl3Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 95a17101120b..da538d8d3cdb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1538,6 +1538,8 @@ let fuseiso = callPackage ../tools/filesystems/fuseiso { }; + fuse-7z-ng = callPackage ../tools/filesystems/fuse-7z-ng { }; + fuse_zip = callPackage ../tools/filesystems/fuse-zip { }; exfat = callPackage ../tools/filesystems/exfat { };