nixpkgs/pkgs/tools/misc/hoard/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
881 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:
2022-06-11 12:08:14 +01:00
rustPlatform.buildRustPackage rec {
pname = "hoard";
version = "1.4.2";
2022-06-11 12:08:14 +01:00
src = fetchFromGitHub {
owner = "Hyde46";
repo = "hoard";
2022-06-11 12:08:14 +01:00
rev = "v${version}";
hash = "sha256-c9iSbxkHwLOeATkO7kzTyLD0VAwZUzCvw5c4FyuR5/E=";
2022-06-11 12:08:14 +01:00
};
cargoHash = "sha256-4EeeD1ySR4M1i2aaKJP/BNSn+t1l8ingiv2ZImFFn1A=";
2022-06-11 12:08:14 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
2022-06-11 12:08:14 +01:00
meta = with lib; {
description = "CLI command organizer written in rust";
homepage = "https://github.com/hyde46/hoard";
changelog = "https://github.com/Hyde46/hoard/blob/${src.rev}/CHANGES.md";
2022-06-11 12:08:14 +01:00
license = licenses.mit;
maintainers = with maintainers; [ builditluc figsoda ];
mainProgram = "hoard";
2022-06-11 12:08:14 +01:00
};
}