-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrainfrog.nix
46 lines (40 loc) · 1.09 KB
/
rainfrog.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# [rainfrog](https://github.com/achristmascarl/rainfrog) is a database management tui for postgres
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, sqlite
, stdenv
, darwin
,
}:
rustPlatform.buildRustPackage rec {
pname = "rainfrog";
version = "0.1.15";
src = fetchFromGitHub {
owner = "achristmascarl";
repo = "rainfrog";
rev = "v${version}";
hash = "sha256-EPF6GoziVhgJlY0adTkH5nxniHsQMcc8Qitx/WdPzgM=";
};
cargoHash = "sha256-WWkX0TlvFk2ZFwTzFqqquR6vaWC9qxQxJC+rIQ4D00Q=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
sqlite
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.CoreGraphics
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
meta = {
description = "A database management tui for postgres";
homepage = "https://github.com/achristmascarl/rainfrog";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jpetrucciani ];
mainProgram = "rainfrog";
};
}