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
31 lines
808 B
Nix
31 lines
808 B
Nix
{ lib, stdenv, fetchFromGitHub, fuse3, bzip2, zlib, attr, cmake }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "apfs-fuse-unstable";
|
|
version = "2019-07-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sgan81";
|
|
repo = "apfs-fuse";
|
|
rev = "309ecb030f38edac4c10fa741a004c5eb7a23e15";
|
|
sha256 = "0wq6rlqi00m5dp5gbzy65i1plm40j6nsm7938zvfgx5laal4wzr2";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [ fuse3 bzip2 zlib attr ];
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
postFixup = ''
|
|
ln -s $out/bin/apfs-fuse $out/bin/mount.fuse.apfs-fuse
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/sgan81/apfs-fuse";
|
|
description = "FUSE driver for APFS (Apple File System)";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ ealasu ];
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|