Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
989 B
Nix
42 lines
989 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
postgresqlTestHook,
|
|
postgresql,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "reshape";
|
|
version = "0.7.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-wv2gKyXCEH+tnZkUUAisMbuseth3dsFiJujH8VO1ii4=";
|
|
};
|
|
|
|
cargoHash = "sha256-lK54SEayI015f2AQ6h4zadgkECLp4jCeJO7enBG0LeM=";
|
|
|
|
nativeCheckInputs = [
|
|
postgresqlTestHook
|
|
postgresql
|
|
];
|
|
|
|
dontUseCargoParallelTests = true;
|
|
|
|
postgresqlTestSetupPost = ''
|
|
export POSTGRES_CONNECTION_STRING="user=$PGUSER dbname=$PGDATABASE host=$PGHOST"
|
|
'';
|
|
|
|
postgresqlTestUserOptions = "LOGIN SUPERUSER";
|
|
|
|
meta = {
|
|
description = "Easy-to-use, zero-downtime schema migration tool for Postgres";
|
|
mainProgram = "reshape";
|
|
homepage = "https://github.com/fabianlindfors/reshape";
|
|
changelog = "https://github.com/fabianlindfors/reshape/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ilyakooo0 ];
|
|
};
|
|
}
|