Merge pull request #211357 from ilyakooo0/iko/init-reshape

reshape: init at 0.6.1
This commit is contained in:
Nick Cao 2023-01-26 09:07:01 +08:00 committed by GitHub
commit 15b19586b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1132 additions and 0 deletions

1080
pkgs/development/tools/reshape/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, fetchpatch
, git
, postgresqlTestHook
, postgresql
}:
rustPlatform.buildRustPackage rec {
pname = "reshape";
version = "0.6.1";
src = fetchFromGitHub {
owner = "fabianlindfors";
repo = pname;
rev = "v${version}";
hash = "sha256-iX8qhDk0PP0AB3bJ6ck8AZ9SCErFH416ggAkgK8O900=";
};
nativeCheckInputs = [
postgresqlTestHook
postgresql
];
dontUseCargoParallelTests = true;
postgresqlTestSetupPost = ''
export POSTGRES_CONNECTION_STRING="user=$PGUSER dbname=$PGDATABASE host=$PGHOST"
'';
postgresqlTestUserOptions = "LOGIN SUPERUSER";
# upstream doesn't ship a Cargo.lock, is generated by the update script
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
cargoLock.lockFile = ./Cargo.lock;
cargoHash = "sha256-UL/vP8055JRbbf5bqf0V3wGh+iF9ztVhyoMrtNs/c+4=";
meta = with lib; {
description = "An easy-to-use, zero-downtime schema migration tool for Postgres";
homepage = "https://github.com/fabianlindfors/reshape";
license = licenses.mit;
maintainers = with maintainers; [ ilyakooo0 ];
};
}

View File

@ -18285,6 +18285,8 @@ with pkgs;
inherit (callPackage ../development/tools/replay-io { })
replay-io replay-node-cli;
reshape = callPackage ../development/tools/reshape { } ;
retdec = callPackage ../development/tools/analysis/retdec {
stdenv = gcc8Stdenv;
};