nixpkgs/pkgs/development/libraries/oniguruma/default.nix

29 lines
772 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "onig-${version}";
version = "6.7.1";
2014-09-22 00:40:19 +00:00
src = fetchFromGitHub {
owner = "kkos";
repo = "oniguruma";
rev = "v${version}";
sha256 = "07xbx4f3h1aqvy6587xbr8fgcn679ph3bd86pp144y0agzw0d0q2";
};
2014-09-22 00:40:19 +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}'
'';
meta = {
homepage = https://github.com/kkos/oniguruma;
description = "Regular expressions library";
2014-09-22 00:40:19 +00:00
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
platforms = with stdenv.lib.platforms; unix;
};
}