2020-03-20 13:50:33 +00:00
|
|
|
{ cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sqlite
|
2021-01-21 17:00:13 +00:00
|
|
|
, lib, stdenv
|
2020-03-20 13:50:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-03-20 13:50:33 +00:00
|
|
|
description = "Database access library for C++";
|
|
|
|
homepage = "http://soci.sourceforge.net/";
|
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|