lol

ifuse: rework expression

+21 -15
+21 -15
pkgs/tools/filesystems/ifuse/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, usbmuxd, fuse, gnutls, libgcrypt, 2 - libplist, libimobiledevice }: 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, usbmuxd, fuse, libimobiledevice }: 3 2 4 3 stdenv.mkDerivation rec { 5 - name = "ifuse-1.1.3"; 4 + pname = "ifuse"; 5 + version = "1.1.3"; 6 6 7 - nativeBuildInputs = [ pkgconfig fuse libplist usbmuxd gnutls libgcrypt libimobiledevice ]; 7 + name = "${pname}-${version}"; 8 8 9 - src = fetchurl { 10 - url = "${meta.homepage}/downloads/${name}.tar.bz2"; 11 - sha256 = "1p9a4n36jb194cnp6v57cz2bggwbywaz8pbpb95ch83pzdkdx257"; 9 + src = fetchFromGitHub { 10 + owner = "libimobiledevice"; 11 + repo = pname; 12 + rev = version; 13 + sha256 = "0p01rds3vc5864v48swgqw5dv0h937nqnxggryixg9pkvzhc6cx5"; 12 14 }; 13 15 14 - meta = { 15 - homepage = http://www.libimobiledevice.org; 16 - license = stdenv.lib.licenses.lgpl21Plus; 16 + nativeBuildInputs = [ autoreconfHook pkgconfig fuse usbmuxd libimobiledevice ]; 17 + 18 + meta = with stdenv.lib; { 19 + homepage = https://github.com/libimobiledevice/ifuse; 17 20 description = "A fuse filesystem implementation to access the contents of iOS devices"; 18 21 longDescription = '' 19 - Mount directories of an iOS device locally using fuse. By default the media 20 - directory is mounted, options allow to also mount the sandbox container of an 21 - app, an app's documents folder or even the root filesystem on jailbroken 22 - devices.''; 23 - inherit (usbmuxd.meta) platforms maintainers; 22 + Mount directories of an iOS device locally using fuse. By default the media 23 + directory is mounted, options allow to also mount the sandbox container of an 24 + app, an app's documents folder or even the root filesystem on jailbroken 25 + devices. 26 + ''; 27 + license = licenses.lgpl21Plus; 28 + platforms = platforms.linux; 29 + maintainers = with maintainers; [ ]; 24 30 }; 25 31 }