nixpkgs/pkgs/misc/ntfs-3g/default.nix
Eelco Dolstra c32f7569dc * ntfs-3g: install sbin/mount.ntfs-3g. Don't pass FUSE as
a dependency (ntfs-3g has its own copy of FUSE).

svn path=/nixpkgs/trunk/; revision=12416
2008-07-24 13:11:02 +00:00

27 lines
764 B
Nix

{stdenv, fetchurl, utillinux}:
stdenv.mkDerivation rec {
pname = "ntfs-3g";
version = "1.2712";
name = "${pname}-${version}";
src = fetchurl {
url = "${meta.homepage}/${name}.tgz";
sha256 = "01rdx3mzp12pbi3q9l279z78w155fh5axaksxmm3xl9m9ljy4c9j";
};
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
'';
configureFlags = "--enable-shared --disable-static --disable-ldconfig --exec-prefix=\${prefix} --enable-mount-helper";
meta = {
homepage = http://www.ntfs-3g.org;
description = "FUSE-base NTFS driver with full write support";
};
}