aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/openldap/.yandex_meta/override.nix
blob: 69ca17d87e551ef743a7f7855292f6bd7839b2e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgs: attrs: with pkgs; rec {
  version = "2.6.8";

  versionWithUnderscores = "${lib.replaceStrings ["."] ["_"] version}";

  src = fetchFromGitLab {
    owner = "openldap";
    repo = "openldap";
    rev = "OPENLDAP_REL_ENG_${versionWithUnderscores}";
    hash = "sha256-fJ6cpLR4DUlNlxGvKliGHu4aT93vR2mNB6AUcqDl+gk=";
  };

  patches = [];

  buildPhase = ''
    make -C include
    make -j$NIX_BUILD_CORES -C libraries/liblber liblber.la
    make -j$NIX_BUILD_CORES -C libraries/libldap libldap.la
    make -j$NIX_BUILD_CORES -C libraries/liblmdb liblmdb.so
  '';
}