uriparser: 0.9.1 -> 0.9.3
This commit is contained in:
parent
9e58c8363b
commit
ec6bc32a3d
@ -1,19 +1,26 @@
|
||||
{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, cmake, gtest, doxygen, graphviz }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "uriparser";
|
||||
version = "0.9.1";
|
||||
version = "0.9.3";
|
||||
|
||||
# Release tarball differs from source tarball
|
||||
src = fetchurl {
|
||||
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1gisi7h8hd6mswbiaaa3s25bnb77xf37pzrmjy63rcdpwcyqy93m";
|
||||
sha256 = "13z234jdaqs9jj7i66gcv4q1rgsypjz6cighnlm1j4g80pdlmbr8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig doxygen graphviz ];
|
||||
buildInputs = lib.optional doCheck gtest;
|
||||
configureFlags = lib.optional (!doCheck) "--disable-tests";
|
||||
patches = [
|
||||
# fixes tests
|
||||
(fetchpatch {
|
||||
url = "https://github.com/uriparser/uriparser/commit/f870e6c68696a6018702caa5c8a2feba9b0f99fa.diff";
|
||||
sha256 = "1nd6bhys9hwy6ippa42vm95zhw6hldm1s4xbdzmdjswc96as1ff5";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake doxygen graphviz ];
|
||||
|
||||
checkInputs = [ gtest ];
|
||||
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user