nixpkgs/pkgs/development/libraries/soci/default.nix

32 lines
678 B
Nix
Raw Normal View History

2020-03-20 13:50:33 +00:00
{ cmake
, fetchFromGitHub
, sqlite
, lib, stdenv
2020-03-20 13:50:33 +00:00
}:
stdenv.mkDerivation rec {
pname = "soci";
2021-03-09 16:13:50 +00:00
version = "4.0.1";
2020-03-20 13:50:33 +00:00
src = fetchFromGitHub {
owner = "SOCI";
repo = pname;
rev = version;
2021-03-09 16:13:50 +00:00
sha256 = "sha256-d4GtxDaB+yGfyCnbvnLRUYcrPSMkUF7Opu6+SZd8opM=";
2020-03-20 13:50:33 +00:00
};
# Do not build static libraries
2021-03-09 16:13:50 +00:00
cmakeFlags = [ "-DSOCI_STATIC=OFF" "-DCMAKE_CXX_STANDARD=11" ];
2020-03-20 13:50:33 +00:00
nativeBuildInputs = [ cmake ];
buildInputs = [ sqlite ];
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 ];
};
}