depot/third_party/nixpkgs/pkgs/by-name/ra/rainfrog/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

44 lines
997 B
Nix

{
lib,
darwin,
fetchFromGitHub,
nix-update-script,
rustPlatform,
stdenv,
}:
let
version = "0.2.6";
in
rustPlatform.buildRustPackage {
inherit version;
pname = "rainfrog";
src = fetchFromGitHub {
owner = "achristmascarl";
repo = "rainfrog";
rev = "refs/tags/v${version}";
hash = "sha256-yY4F5Aw+duXknESjl6hoOUV3er84DkTtIBoX3humWxA=";
};
cargoHash = "sha256-QMZUReWrOS0P+hxsV5c/eJxnwYX977+4oI7MPfz4dgg=";
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
CoreGraphics
SystemConfiguration
]
);
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/achristmascarl/rainfrog/releases/tag/v${version}";
description = "A database management TUI for postgres";
homepage = "https://github.com/achristmascarl/rainfrog";
license = lib.licenses.mit;
mainProgram = "rainfrog";
maintainers = with lib.maintainers; [ patka ];
};
}