@@ -1,41 +0,0 @@
1−{ stdenv, fetchurl, pkgconfig
2−
3−# Optional Dependencies
4−, glib ? null, libev ? null, libevent ? null, tevent ? null, talloc ? null
5−}:
6−with stdenv;
7−let
8− optGlib = shouldUsePkg glib;
9− optLibev = shouldUsePkg libev;
10− optLibevent = shouldUsePkg libevent;
11− optTevent = shouldUsePkg tevent;
12− optTalloc = shouldUsePkg talloc;
13−in
14−with stdenv.lib;
15−stdenv.mkDerivation rec {
16− name = "libverto-0.2.6";
17−
18− src = fetchurl {
19− url = "https://fedorahosted.org/releases/l/i/libverto/${name}.tar.gz";
20− sha256 = "17hwr55ga0rkm5cnyfiipyrk9n372x892ph9wzi88j2zhnisdv0p";
21− };
22−
23− nativeBuildInputs = [ pkgconfig ];
24− buildInputs = [ optGlib optLibev optLibevent ]
25− ++ optionals (optTevent != null && optTalloc != null) [
26− optTevent optTalloc
27− ];
28−
29− postInstall = ''
30− # In v0.2.6 the shipped pkg-config files have an out of order
31− # declaration of exec_prefix breaking them. This fixes that issue
32− sed -i 's,''${exec_prefix},''${prefix},g' $out/lib/pkgconfig/*.pc
33− '';
34−
35− meta = {
36− homepage = https://fedorahosted.org/libverto/;
37− license = licenses.mit;
38− platforms = platforms.all;
39− maintainers = with maintainers; [ wkennington ];
40− };
41−}