nixpkgs/pkgs/tools/filesystems/ntfs-3g/default.nix
Yury G. Kudryashov f806eca299 Actually upgrade ntfs-3g
ntfsprogs collection is now part of ntfs-3g

svn path=/nixpkgs/trunk/; revision=31065
2011-12-24 22:28:00 +00:00

43 lines
1.3 KiB
Nix

{stdenv, fetchurl, utillinux, libuuid
, crypto ? false, libgcrypt, gnutls, pkgconfig}:
stdenv.mkDerivation rec {
pname = "ntfs-3g_ntfsprogs";
version = "2011.4.12";
name = "${pname}-${version}";
buildInputs = [libuuid] ++ stdenv.lib.optionals crypto [gnutls libgcrypt];
buildNativeInputs = stdenv.lib.optional crypto pkgconfig;
src = fetchurl {
url = "http://tuxera.com/opensource/${name}.tgz";
sha256 = "01gfn94f4fdrl1rjhhxjvjbarr1mipdi4pmhhwirp0gy1dzp935a";
};
patchPhase = ''
substituteInPlace src/Makefile.in --replace /sbin '@sbindir@'
substituteInPlace ntfsprogs/Makefile.in --replace /sbin '@sbindir@'
substituteInPlace libfuse-lite/mount_util.c \
--replace /bin/mount ${utillinux}/bin/mount \
--replace /bin/umount ${utillinux}/bin/umount
'';
configureFlags =
''
--disable-ldconfig --exec-prefix=''${prefix} --enable-mount-helper
--enable-posix-acls --enable-xattr-mappings --${if crypto then "enable" else "disable"}-crypto
'';
postInstall =
''
# Prefer ntfs-3g over the ntfs driver in the kernel.
ln -sv mount.ntfs-3g $out/sbin/mount.ntfs
'';
meta = {
homepage = http://www.tuxera.com/community/;
description = "FUSE-base NTFS driver with full write support";
maintainers = [ stdenv.lib.maintainers.urkud ];
};
}