nixpkgs/pkgs/development/libraries/oniguruma/default.nix
Ryan Mulligan 642b62d61d oniguruma: 6.6.1 -> 6.7.1
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 6.7.1 with grep in /nix/store/adypaqqfpnmali0662725r7xdzgyqqh0-onig-6.7.1
- directory tree listing: https://gist.github.com/b40671987a847be6597a16cb977ff6a4
2018-03-25 11:13:55 -05:00

29 lines
772 B
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "onig-${version}";
version = "6.7.1";
src = fetchFromGitHub {
owner = "kkos";
repo = "oniguruma";
rev = "v${version}";
sha256 = "07xbx4f3h1aqvy6587xbr8fgcn679ph3bd86pp144y0agzw0d0q2";
};
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;
};
}