libnfsidmap: add missing include, fix w/musl

This commit is contained in:
Will Dietz 2018-04-22 22:25:35 -05:00
parent 40be5dd2df
commit d6a6dcc1f8

View File

@ -2,12 +2,16 @@
stdenv.mkDerivation rec {
name = "libnfsidmap-0.25";
src = fetchurl {
url = "http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${name}.tar.gz";
sha256 = "1kzgwxzh83qi97rblcm9qj80cdvnv8kml2plz0q103j0hifj8vb5";
};
postPatch = ''
sed -i '1i#include <sys/types.h>' cfg.h
'';
preConfigure =
''
configureFlags="--with-pluginpath=$out/lib/libnfsidmap"