mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
29 lines
772 B
Nix
29 lines
772 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "onig-${version}";
|
|
version = "6.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kkos";
|
|
repo = "oniguruma";
|
|
rev = "v${version}";
|
|
sha256 = "062g5443dyxsraq346panfqvbd6wal6nmb336n4dw1rszx576sxz";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
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";
|
|
license = stdenv.lib.licenses.bsd2;
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
|
platforms = with stdenv.lib.platforms; unix;
|
|
};
|
|
}
|