mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
7615027fad
* libowfat: 0.31 -> 0.32 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libowfat/versions * libowfat: keep headers under include directory 0.32 wanted to move them under include/libowfat/ but it breaks gatling and opentracker
31 lines
912 B
Nix
31 lines
912 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libowfat-0.32";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.fefe.de/libowfat/${name}.tar.xz";
|
|
sha256 = "1hcqg7pvy093bxx8wk7i4gvbmgnxz2grxpyy7b4mphidjbcv7fgl";
|
|
};
|
|
|
|
# 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)'
|
|
'';
|
|
|
|
makeFlags = "prefix=$(out)";
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.fefe.de/libowfat/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|