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.

57 lines
983 B
Nix
Raw Normal View History

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