about summary refs log tree commit diff
path: root/pkgs/by-name/re
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-05-06 22:56:00 +0800
committerGitHub <noreply@github.com>2024-05-06 22:56:00 +0800
commit97ae4fc7508449a4cc4c209a09345d72ce78c0d0 (patch)
treeb553197cf57273f5e570f54fc903cef1047a9de4 /pkgs/by-name/re
parent21b089641d73db6ebbe0904086f4b0eb45fa1b97 (diff)
parent1271860b5eb39783f3bba73bcebc9592da2d181f (diff)
Merge pull request #308863 from lucperkins/move-into-by-name
treewide: move packages maintained by lucperkins to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/re')
-rw-r--r--pkgs/by-name/re/refinery-cli/package.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/by-name/re/refinery-cli/package.nix b/pkgs/by-name/re/refinery-cli/package.nix
new file mode 100644
index 0000000000000..609a2618f86c7
--- /dev/null
+++ b/pkgs/by-name/re/refinery-cli/package.nix
@@ -0,0 +1,28 @@
+{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "refinery-cli";
+  version = "0.8.14";
+
+  src = fetchCrate {
+    pname = "refinery_cli";
+    inherit version;
+    sha256 = "sha256-gHW+5WWzk1H2O5B2sWdl6QcOeUbNvbdZZBD10SmE1GA=";
+  };
+
+  cargoHash = "sha256-Go7+LZSze/IrNwEl+11Dm5O9RcREyPSkHPjlE9SPO70=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ openssl ]
+    ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
+
+  meta = with lib; {
+    description = "Run migrations for the Refinery ORM for Rust via the CLI";
+    mainProgram = "refinery";
+    homepage = "https://github.com/rust-db/refinery";
+    changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
+    license = licenses.mit;
+    maintainers = with maintainers; [ lucperkins ];
+  };
+}