summary refs log tree commit diff
path: root/pkgs/development/libraries/soci/default.nix
blob: 1f9b77cc3c920371cb281ad4ecacb036ef91506f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ cmake
, fetchFromGitHub
, sqlite
, stdenv
}:

stdenv.mkDerivation rec {
  pname = "soci";
  version = "4.0.0";

  src = fetchFromGitHub {
    owner = "SOCI";
    repo = pname;
    rev = version;
    sha256 = "06faswdxd2frqr9xnx6bxc7zwarlzsbdi3bqpz7kwdxsjvq41rnb";
  };

  # Do not build static libraries
  cmakeFlags = [ "-DSOCI_STATIC=OFF" ];

  nativeBuildInputs = [ cmake ];
  buildInputs = [ sqlite ];

  meta = with stdenv.lib; {
    description = "Database access library for C++";
    homepage = "http://soci.sourceforge.net/";
    license = licenses.boost;
    platforms = platforms.all;
    maintainers = with maintainers; [ jluttine ];
  };
}