2008-07-24 15:11:02 +02:00
|
|
|
{stdenv, fetchurl, utillinux}:
|
|
|
|
|
2008-01-28 20:31:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-03-19 13:32:44 +01:00
|
|
|
pname = "ntfs-3g";
|
2011-12-23 15:19:45 +01:00
|
|
|
version = "2011.4.12";
|
2008-03-19 13:32:44 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2007-09-01 20:15:19 +02:00
|
|
|
src = fetchurl {
|
2011-10-28 23:28:52 +02:00
|
|
|
url = "http://pkgs.fedoraproject.org/repo/pkgs/ntfs-3g/ntfs-3g-2010.10.2.tgz/91405690f25822142cdcb43d03e62d3f/ntfs-3g-2010.10.2.tgz";
|
2010-11-08 00:20:02 +01:00
|
|
|
sha256 = "0wcyks4nvi1kck8i2dgwfsy5zxhil0v0xam8zbg1p592xbqygiqp";
|
2007-09-01 20:15:19 +02:00
|
|
|
};
|
2008-03-19 13:32:44 +01:00
|
|
|
|
2008-07-24 15:11:02 +02:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace src/Makefile.in --replace /sbin '@sbindir@'
|
|
|
|
substituteInPlace libfuse-lite/mount_util.c \
|
|
|
|
--replace /bin/mount ${utillinux}/bin/mount \
|
|
|
|
--replace /bin/umount ${utillinux}/bin/umount
|
|
|
|
'';
|
2008-03-19 13:32:44 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
configureFlags = "--disable-ldconfig --exec-prefix=\${prefix} --enable-mount-helper";
|
2007-09-01 20:15:19 +02:00
|
|
|
|
2011-12-23 15:19:45 +01:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
# Prefer ntfs-3g over the ntfs driver in the kernel.
|
|
|
|
ln -s mount.ntfs-3g $out/sbin/mount.ntfs
|
|
|
|
'';
|
|
|
|
|
2007-09-01 20:15:19 +02:00
|
|
|
meta = {
|
2010-11-08 00:20:02 +01:00
|
|
|
homepage = http://www.tuxera.com/community/;
|
2008-07-24 15:11:02 +02:00
|
|
|
description = "FUSE-base NTFS driver with full write support";
|
2010-11-08 00:20:02 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2007-09-01 20:15:19 +02:00
|
|
|
};
|
|
|
|
}
|