2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
2021-05-03 20:48:10 +00:00
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "movine";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.11.4";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-wa2GfV2Y8oX8G+1LbWnb2KH/+QbUYL9GXgOOVHpzbN8=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-brM6QObhl9W5SZ+79Kv9oNxnglO24BUgjPSQy9jV1/Q=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-05-24 13:37:59 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Migration manager written in Rust, that attempts to be smart yet minimal";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "movine";
|
2021-05-03 20:48:10 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|