From 26164c05c5a227462e8f076db6018a4c55fa1412 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 16 Jul 2010 22:04:56 +0000 Subject: [PATCH] * lndir: work properly on directories with st_nlink set to 1 (such as on btrfs). (From David Brown.) svn path=/nixpkgs/trunk/; revision=22619 --- pkgs/servers/x11/xorg/overrides.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index e8a311a651a9..1582fc4fdcd4 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -153,4 +153,11 @@ in configureFlags = "LIBUUID_CFLAGS='' LIBUUID_LIBS=''"; }; + lndir = attrs: attrs // { + preConfigure = '' + substituteInPlace lndir.c \ + --replace 'n_dirs--;' "" + ''; + }; + }