nixpkgs/pkgs/by-name/sq/sqlite_orm/package.nix
2024-08-30 08:58:55 +00:00

35 lines
683 B
Nix

{ lib
, cmake
, fetchFromGitHub
, sqlite
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sqlite_orm";
version = "1.9";
src = fetchFromGitHub {
owner = "fnc12";
repo = "sqlite_orm";
rev = "v${finalAttrs.version}";
hash = "sha256-jgRCYOtCyXj2E5J3iYBffX2AyBwvhune+i4Pb2eCBrA=";
};
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = [
sqlite
];
strictDeps = true;
meta = with lib; {
description = "Light header only SQLite ORM";
homepage = "https://sqliteorm.com/";
license = licenses.agpl3Only; # MIT license is commercial
maintainers = with maintainers; [ ambroisie ];
platforms = platforms.all;
};
})