guile-sqlite3: adopt and rewrite

- nixfmt-rfc-style
- finalAttrs
- no nested with
This commit is contained in:
Anderson Torres 2024-08-19 13:15:06 -03:00
parent 7e1ddd1a4a
commit fa36e4bd1a

View File

@ -1,46 +1,51 @@
{ lib
, stdenv
, fetchFromGitea
, guile
, autoreconfHook
, pkg-config
, texinfo
, sqlite
{
lib,
autoreconfHook,
fetchFromGitea,
guile,
pkg-config,
sqlite,
stdenv,
texinfo,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "guile-sqlite3";
version = "0.1.3";
src = fetchFromGitea {
domain = "notabug.org";
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-C1a6lMK4O49043coh8EQkTWALrPolitig3eYf+l+HmM=";
owner = "guile-sqlite3";
repo = "guile-sqlite3";
rev = "v${finalAttrs.version}";
hash = "sha256-C1a6lMK4O49043coh8EQkTWALrPolitig3eYf+l+HmM=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
guile
pkg-config
texinfo
];
buildInputs = [
guile
sqlite
];
doCheck = true;
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];
strictDeps = true;
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
description = "Guile bindings for the SQLite3 database engine";
meta = {
homepage = "https://notabug.org/guile-sqlite3/guile-sqlite3";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ miangraham ];
platforms = guile.meta.platforms;
description = "Guile bindings for the SQLite3 database engine";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (guile.meta) platforms;
};
}
})