summary refs log tree commit diff
path: root/pkgs/development/libraries/libowfat
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libowfat')
-rw-r--r--pkgs/development/libraries/libowfat/default.nix20
1 files changed, 5 insertions, 15 deletions
diff --git a/pkgs/development/libraries/libowfat/default.nix b/pkgs/development/libraries/libowfat/default.nix
index 5f434a7ae75..9db1354677d 100644
--- a/pkgs/development/libraries/libowfat/default.nix
+++ b/pkgs/development/libraries/libowfat/default.nix
@@ -1,28 +1,18 @@
-{ stdenv, fetchurl }:
+{ lib, stdenv, fetchurl }:
 
 stdenv.mkDerivation rec {
-  name = "libowfat-0.32";
+  pname = "libowfat";
+  version = "0.32";
 
   src = fetchurl {
-    url = "https://www.fefe.de/libowfat/${name}.tar.xz";
+    url = "https://www.fefe.de/libowfat/${pname}-${version}.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; {
+  meta = with lib; {
     description = "A GPL reimplementation of libdjb";
     homepage = "https://www.fefe.de/libowfat/";
     license = licenses.gpl2;