2014-10-07 16:06:32 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-22 21:43:11 +01:00
|
|
|
name = "libowfat-0.32";
|
2014-10-07 16:06:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-28 15:07:41 +00:00
|
|
|
url = "https://www.fefe.de/libowfat/${name}.tar.xz";
|
2018-10-22 21:43:11 +01:00
|
|
|
sha256 = "1hcqg7pvy093bxx8wk7i4gvbmgnxz2grxpyy7b4mphidjbcv7fgl";
|
2014-10-07 16:06:32 +01:00
|
|
|
};
|
|
|
|
|
2018-10-22 21:43:11 +01:00
|
|
|
# Dirty patch because 0.32 "moved headers to <libowfat/> upon install"
|
|
|
|
# but it breaks gatling-0.15 and opentracker-2018-05-26 ...
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace GNUmakefile --replace \
|
|
|
|
'install -d $(DESTDIR)$(INCLUDEDIR)/libowfat' \
|
|
|
|
'install -d $(DESTDIR)$(INCLUDEDIR)'
|
|
|
|
substituteInPlace GNUmakefile --replace \
|
|
|
|
'install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)/libowfat' \
|
|
|
|
'install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)'
|
|
|
|
'';
|
|
|
|
|
2014-10-07 16:06:32 +01:00
|
|
|
makeFlags = "prefix=$(out)";
|
2018-10-22 21:43:11 +01:00
|
|
|
enableParallelBuilding = true;
|
2018-01-28 15:07:41 +00:00
|
|
|
|
2014-10-07 16:06:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-10-22 21:43:11 +01:00
|
|
|
homepage = https://www.fefe.de/libowfat/;
|
2014-10-07 16:06:32 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2018-01-28 15:07:41 +00:00
|
|
|
}
|