1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "https://www.fefe.de/libowfat/${pname}-${version}.tar.xz";
9 sha256 = "sha256-1DMNNzrJWBs5e8JKIq0ff11Yp/422dI5/jUs7/xdMEs=";
12 # Fix for glibc 2.34 from Gentoo
13 # https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914a4aa87415dabfe77181a2365766417a5919a4
15 # do not define "__pure__", this the gcc builtin (bug #806505)
16 sed 's#__pure__;#__attribute__((__pure__));#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die
17 sed 's#__pure__$#__attrib__pure__#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die
18 # remove unneeded definition of __deprecated__
19 sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c scan/scan_httpdate.c || die
25 makeFlags = [ "prefix=$(out)" ];
26 enableParallelBuilding = true;
29 description = "GPL reimplementation of libdjb";
30 homepage = "https://www.fefe.de/libowfat/";
31 license = licenses.gpl2;
32 platforms = platforms.linux;