treewide: move to by-name
This commit is contained in:
-4524
File diff suppressed because it is too large
Load Diff
@@ -1,46 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
openssl,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "replibyte";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Qovery";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-VExA92g+1y65skxLKU62ZPUPOwdm9N73Ne9xW7Q0Sic=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"mongodb-schema-parser-0.5.0" = "sha256-P3srDY4bEDDYyic7Am2Cg+75j/kETf0uC7ui61TUJQA=";
|
||||
};
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cp ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
cargoBuildFlags = [ "--all-features" ];
|
||||
|
||||
doCheck = false; # requires multiple dbs to be installed
|
||||
|
||||
meta = with lib; {
|
||||
description = "Seed your development database with real data";
|
||||
mainProgram = "replibyte";
|
||||
homepage = "https://github.com/Qovery/replibyte";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
surrealdb-migrations,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "surrealdb-migrations";
|
||||
version = "2.2.1";
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Odonno";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-MeHNBtzl2bNJFGKtM1o9mGnX0vbmnpUPc18ecqG6J+8=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-l59RbKohfPsAp/70UaT/bhy5Z4orVf7fuJgU+0fuyk4=";
|
||||
|
||||
# Error: No such file or directory (os error 2)
|
||||
# failures:
|
||||
# cli::apply::apply_initial_migrations
|
||||
# cli::apply::apply_initial_schema_changes
|
||||
# cli::apply::apply_new_migrations
|
||||
# cli::apply::apply_new_schema_changes
|
||||
# cli::apply::apply_should_skip_events_if_no_events_folder
|
||||
# cli::apply::apply_with_db_configuration
|
||||
# cli::apply::apply_with_skipped_migrations
|
||||
# cli::list::list_blog_migrations
|
||||
# cli::list::list_empty_migrations
|
||||
# library::list::list_blog_migrations
|
||||
# library::list::list_empty_migrations
|
||||
# library::up::apply_initial_migrations
|
||||
# library::up::apply_initial_schema_changes
|
||||
# library::up::apply_new_migrations
|
||||
# library::up::apply_new_schema_changes
|
||||
# library::up::apply_should_skip_events_if_no_events_folder
|
||||
# library::up_to::apply_with_skipped_migrations
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
package = surrealdb-migrations;
|
||||
command = "surrealdb-migrations --version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project";
|
||||
homepage = "https://crates.io/crates/surrealdb-migrations";
|
||||
mainProgram = "surrealdb-migrations";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user