Files
nixpkgs/pkgs/by-name/sq/sqlitecpp/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
796 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
sqlite,
gtest,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sqlitecpp";
version = "3.3.3";
src = fetchFromGitHub {
owner = "SRombauts";
repo = "sqlitecpp";
rev = finalAttrs.version;
hash = "sha256-RSNJGfvIvNfk+/Awzh06tDi/TA5Wc35X8ya0X5mP9IE=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
sqlite
gtest
];
doCheck = true;
cmakeFlags = [
"-DSQLITECPP_INTERNAL_SQLITE=OFF"
"-DSQLITECPP_BUILD_TESTS=ON"
];
meta = {
homepage = "https://srombauts.github.io/SQLiteCpp/";
description = "C++ SQLite3 wrapper";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = [
lib.maintainers.jbedo
lib.maintainers.doronbehar
];
};
})