2023-01-18 08:49:54 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-08-06 17:05:13 +00:00
|
|
|
, fetchCrate
|
2023-01-18 08:49:54 +00:00
|
|
|
, postgresqlTestHook
|
|
|
|
, postgresql
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "reshape";
|
|
|
|
version = "0.6.1";
|
|
|
|
|
2023-08-06 17:05:13 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-pTEOVDeCE69dn005nj1ULGKjguCtC1uReI/l3WEz4+w=";
|
2023-01-18 08:49:54 +00:00
|
|
|
};
|
|
|
|
|
2023-08-06 17:05:13 +00:00
|
|
|
cargoHash = "sha256-KYU5drTVHdWmlE01Fq1TxJZTe87yBpDKIGm4P+RRCGw=";
|
|
|
|
|
2023-01-18 08:49:54 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
postgresqlTestHook
|
|
|
|
postgresql
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCargoParallelTests = true;
|
|
|
|
|
|
|
|
postgresqlTestSetupPost = ''
|
|
|
|
export POSTGRES_CONNECTION_STRING="user=$PGUSER dbname=$PGDATABASE host=$PGHOST"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postgresqlTestUserOptions = "LOGIN SUPERUSER";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An easy-to-use, zero-downtime schema migration tool for Postgres";
|
|
|
|
homepage = "https://github.com/fabianlindfors/reshape";
|
2023-08-06 17:05:13 +00:00
|
|
|
changelog = "https://github.com/fabianlindfors/reshape/releases/tag/v${version}";
|
2023-01-18 08:49:54 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ilyakooo0 ];
|
|
|
|
};
|
|
|
|
}
|