nixpkgs/pkgs/by-name/co/cowsql/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.0 KiB
Nix
Raw Normal View History

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