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
53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "movine";
|
|
version = "0.11.4";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-wa2GfV2Y8oX8G+1LbWnb2KH/+QbUYL9GXgOOVHpzbN8=";
|
|
};
|
|
|
|
cargoHash = "sha256-sdyx2W9VUp1cBl19fFL2JDS+uS12zaC50yYzHaLOnHs=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Migration manager written in Rust, that attempts to be smart yet minimal";
|
|
mainProgram = "movine";
|
|
homepage = "https://github.com/byronwasti/movine";
|
|
license = licenses.mit;
|
|
longDescription = ''
|
|
Movine is a simple database migration manager that aims to be compatible
|
|
with real-world migration work. Many migration managers get confused
|
|
with complicated development strategies for migrations. Oftentimes
|
|
migration managers do not warn you if the SQL saved in git differs from
|
|
what was actually run on the database. Movine solves this issue by
|
|
keeping track of the unique hashes for the <literal>up.sql</literal> and
|
|
<literal>down.sql</literal> for each migration, and provides tools for
|
|
fixing issues. This allows users to easily keep track of whether their
|
|
local migration history matches the one on the database.
|
|
|
|
This project is currently in early stages.
|
|
|
|
Movine does not aim to be an ORM.
|
|
Consider <link xling:href="https://diesel.rs/">diesel</link> instead if
|
|
you want an ORM.
|
|
'';
|
|
maintainers = with maintainers; [ netcrns ];
|
|
};
|
|
}
|