forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fuse, p7zip, autoconf, automake, pkgconfig, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fuse-7z-ng";
|
|
version = "git-2014-06-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kedazo";
|
|
repo = pname;
|
|
rev = "eb5efb1f304c2b7bc2e0389ba06c9bf2ac4b932c";
|
|
sha256 = "17v1gcmg5q661b047zxjar735i4d3508dimw1x3z1pk4d1zjhp3x";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ fuse autoconf automake 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 lib; {
|
|
inherit version;
|
|
inherit (src.homepage);
|
|
description = "A FUSE-based filesystem that uses the p7zip library";
|
|
longDescription = ''
|
|
fuse-7z-ng is a FUSE file system that uses the p7zip
|
|
library to access all archive formats supported by 7-zip.
|
|
|
|
This project is a fork of fuse-7z ( https://gitorious.org/fuse-7z/fuse-7z ).
|
|
'';
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|