2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
darwin,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
rustPlatform,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
let
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.2.6";
|
2024-09-26 11:04:55 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit version;
|
|
|
|
pname = "rainfrog";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achristmascarl";
|
|
|
|
repo = "rainfrog";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-yY4F5Aw+duXknESjl6hoOUV3er84DkTtIBoX3humWxA=";
|
2024-09-26 11:04:55 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-QMZUReWrOS0P+hxsV5c/eJxnwYX977+4oI7MPfz4dgg=";
|
2024-09-26 11:04:55 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|