about summary refs log tree commit diff
path: root/pkgs/development/libraries/re2/default.nix
blob: 26ef47199e308fbfea8c9cdd7898e98247c6689b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "re2";
  version = "20130802";

  src = fetchurl {
    url = "https://re2.googlecode.com/files/${name}-${version}.tgz";
    sha256 = "12yxbjsnc1ym7jny470wbnb6h3rgsfv0z75vdp12npklck5nmwhp";
  };

  preConfigure = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
  '';

  meta = {
    homepage = https://code.google.com/p/re2/;
    description = "An efficient, principled regular expression library";
    license = with stdenv.lib.licenses; bsd3;
    platforms = with stdenv.lib.platforms; all;
  };
}