depot/third_party/nixpkgs/pkgs/by-name/co/cowsql/package.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

57 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libuv
, raft-cowsql
, sqlite
, incus
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cowsql";
version = "1.15.4";
src = fetchFromGitHub {
owner = "cowsql";
repo = "cowsql";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-JbLiwWXOrEhqCdM8tWwxl68O5Sga4T7NYCXzqP9+Dh0=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libuv
raft-cowsql.dev
sqlite
];
enableParallelBuilding = true;
doCheck = true;
outputs = [ "dev" "out" ];
passthru = {
inherit (incus) tests;
updateScript = gitUpdater {
rev-prefix = "v";
};
};
meta = with lib; {
changelog = "https://github.com/cowsql/cowsql/releases/tag/${version}";
description = "Embeddable, replicated and fault tolerant SQL engine";
homepage = "https://github.com/cowsql/cowsql";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ adamcstephens ];
platforms = platforms.unix;
};
})