[Nix-dev] ntfs-3g in trunk appears broken

Tony White tonywhite100 at googlemail.com
Mon Apr 6 19:11:24 CEST 2009


I just tried checking out trunk to update nixos from it and got a failure from :

https://svn.nixos.org/repos/nix/nixpkgs/trunk/pkgs/misc/ntfs-3g/default.nix

The error was that the archive could not be found on the server, I
think that the ntfs-3g people must have deleted it.

I changed the expression locally to :

{stdenv, fetchurl, utillinux}:

stdenv.mkDerivation rec {
  pname = "ntfs-3g";
  version = "2009.4.4";
  name = "${pname}-${version}";

  src = fetchurl {
    url = "${meta.homepage}/${name}.tgz";
    sha256 = "bcd39ebe90541f512e605b62911f14f6107239c4ff032d56d5da3dc3c05e0d0f";
  };

  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";
  };
}



Which pulls the latest stable release, According to the site.
It built perfectly and allowed the rest of the update to continue
without erroring out.
Is this the right place to mention this or is the bug tracker preferred?

Is anyone able to show me how to add fall back sources like
alternative mirrors to expressions?
I can see that :

  src = fetchurl {
    url = "${meta.homepage}/${name}.tgz";
    sha256 = "bcd39ebe90541f512e605b62911f14f6107239c4ff032d56d5da3dc3c05e0d0f";
  };

Is how the expression is used to call the src. Is there a way to add
one or two other sources to the expression as a fallback if the
archive has been removed from the server?

Many thanks,

Tony



More information about the nix-dev mailing list