about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/hoard/default.nix
blob: f44787924d94c019aea0ecb1bbd96f96b496f8d0 (plain) (blame)
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
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security }:

rustPlatform.buildRustPackage rec {
  pname = "hoard";
  version = "1.3.1";

  src = fetchFromGitHub {
    owner = "Hyde46";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-Gm3X6/g5JQJEl7wRvWcO4j5XpROhtfRJ72LNaUeZRGc=";
  };

  buildInputs = [ ncurses openssl ]
    ++ lib.optional stdenv.isDarwin Security;

  nativeBuildInputs = [ pkg-config ];

  cargoHash = "sha256-ZNhUqnsme1rczl3FdFBGGs+vBDFcFEELkPp0/udTfR4=";

  meta = with lib; {
    description = "CLI command organizer written in rust";
    homepage = "https://github.com/hyde46/hoard";
    license = licenses.mit;
    maintainers = with maintainers; [ builditluc ];
  };
}