2017-09-28 11:53:18 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2012-12-01 20:28:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-28 11:53:18 +00:00
|
|
|
name = "onig-${version}";
|
2018-03-21 05:31:59 +00:00
|
|
|
version = "6.7.1";
|
2014-09-22 00:40:19 +00:00
|
|
|
|
2017-09-28 11:53:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kkos";
|
|
|
|
repo = "oniguruma";
|
|
|
|
rev = "v${version}";
|
2018-03-21 05:31:59 +00:00
|
|
|
sha256 = "07xbx4f3h1aqvy6587xbr8fgcn679ph3bd86pp144y0agzw0d0q2";
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
2014-09-22 00:40:19 +00:00
|
|
|
|
2017-09-28 11:53:18 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2017-10-02 20:18:23 +00:00
|
|
|
prePatch = stdenv.lib.optional stdenv.isDarwin ''
|
|
|
|
substituteInPlace cmake/dist.cmake \
|
|
|
|
--replace '@executable_path/''${UP_DIR}/''${INSTALL_LIB}' $out'/''${INSTALL_LIB}'
|
|
|
|
'';
|
|
|
|
|
2012-12-01 20:28:32 +00:00
|
|
|
meta = {
|
2017-09-28 11:53:18 +00:00
|
|
|
homepage = https://github.com/kkos/oniguruma;
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Regular expressions library";
|
2014-09-22 00:40:19 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
}
|