
Changelog: https://github.com/halcyonnouveau/clorinde/blob/clorinde-v1.0.0/CHANGELOG.md Diff: https://github.com/halcyonnouveau/clorinde/compare/clorinde-v0.16.0...clorinde-v1.0.0
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "clorinde";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "halcyonnouveau";
|
|
repo = "clorinde";
|
|
tag = "clorinde-v${finalAttrs.version}";
|
|
hash = "sha256-AYoSs3rDZ5j8Xt6E4X7RmgccM3bng3rgWzVLFjhmfR0=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-hxOVocfQvBlaYh227SVLYncfVZ80bDxIvoMtthaqQqc=";
|
|
|
|
cargoBuildFlags = [ "--package=clorinde" ];
|
|
|
|
cargoTestFlags = finalAttrs.cargoBuildFlags;
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"clorinde-v(.*)"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Generate type-checked Rust from your PostgreSQL";
|
|
homepage = "https://github.com/halcyonnouveau/clorinde";
|
|
changelog = "https://github.com/halcyonnouveau/clorinde/blob/clorinde-v${finalAttrs.version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
mit
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [ defelo ];
|
|
mainProgram = "clorinde";
|
|
};
|
|
})
|