about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/hoard/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/hoard/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/misc/hoard/default.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/tools/misc/hoard/default.nix b/nixpkgs/pkgs/tools/misc/hoard/default.nix
index f44787924d94..4bdf7b7127b8 100644
--- a/nixpkgs/pkgs/tools/misc/hoard/default.nix
+++ b/nixpkgs/pkgs/tools/misc/hoard/default.nix
@@ -1,27 +1,39 @@
-{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, Security }:
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, stdenv
+, darwin
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "hoard";
-  version = "1.3.1";
+  version = "1.4.2";
 
   src = fetchFromGitHub {
     owner = "Hyde46";
-    repo = pname;
+    repo = "hoard";
     rev = "v${version}";
-    sha256 = "sha256-Gm3X6/g5JQJEl7wRvWcO4j5XpROhtfRJ72LNaUeZRGc=";
+    hash = "sha256-c9iSbxkHwLOeATkO7kzTyLD0VAwZUzCvw5c4FyuR5/E=";
   };
 
-  buildInputs = [ ncurses openssl ]
-    ++ lib.optional stdenv.isDarwin Security;
+  cargoHash = "sha256-4EeeD1ySR4M1i2aaKJP/BNSn+t1l8ingiv2ZImFFn1A=";
 
   nativeBuildInputs = [ pkg-config ];
 
-  cargoHash = "sha256-ZNhUqnsme1rczl3FdFBGGs+vBDFcFEELkPp0/udTfR4=";
+  buildInputs = [
+    openssl
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
 
   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";
     license = licenses.mit;
-    maintainers = with maintainers; [ builditluc ];
+    maintainers = with maintainers; [ builditluc figsoda ];
+    mainProgram = "hoard";
   };
 }