summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/tarantool/default.nix
blob: 9e22fd4f33827f2e50898d6230f460097c58b4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchgit, cmake, ncurses, openssl, readline, ... }:

stdenv.mkDerivation rec {
  name = "tarantool-1.7.1-164-g0fd0239";
  src = fetchgit {
    url = https://github.com/tarantool/tarantool;
    rev = builtins.elemAt (builtins.match ".*-g([0-9a-f]+)" name) 0;
    sha256 = "1jnaiizbl9j4a8vsihqx75iqa9bkh1kpwsyrgmim8ikiyzfw54dz";
    fetchSubmodules = true;
  };
  buildInputs = [
    cmake
    ncurses
    openssl
    readline
  ];
  preConfigure = ''
    echo ${(builtins.parseDrvName name).version} > VERSION
    sed -i 's/NAMES termcap/NAMES ncurses/' cmake/FindTermcap.cmake
  '';
}