about summary refs log tree commit diff
path: root/pkgs/tools/misc/macchina
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-01-10 16:14:22 +0100
committerGitHub <noreply@github.com>2023-01-10 16:14:22 +0100
commit42bb111451b88d23cf6361bf5c522985401b4f9b (patch)
tree57b832338ae49a8a19fa9a2db3bccc944dcef915 /pkgs/tools/misc/macchina
parent4c8cbd8e0f732e649ed0dd6ba39286a078f0581b (diff)
macchina: update rev
Diffstat (limited to 'pkgs/tools/misc/macchina')
-rw-r--r--pkgs/tools/misc/macchina/default.nix24
1 files changed, 18 insertions, 6 deletions
diff --git a/pkgs/tools/misc/macchina/default.nix b/pkgs/tools/misc/macchina/default.nix
index 5295b002e5506..099bb35b58a7c 100644
--- a/pkgs/tools/misc/macchina/default.nix
+++ b/pkgs/tools/misc/macchina/default.nix
@@ -1,5 +1,11 @@
-{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles
-, libiconv, Foundation }:
+{ lib
+, stdenv
+, rustPlatform
+, fetchFromGitHub
+, installShellFiles
+, libiconv
+, Foundation
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "macchina";
@@ -8,14 +14,20 @@ rustPlatform.buildRustPackage rec {
   src = fetchFromGitHub {
     owner = "Macchina-CLI";
     repo = pname;
-    rev = "v${version}";
-    sha256 = "sha256-zbQOmlFWpoQwf4rlDLn1V0vj1c66pVWrMROGANRDl9s=";
+    rev = "tags/release/v${version}";
+    hash = "sha256-zbQOmlFWpoQwf4rlDLn1V0vj1c66pVWrMROGANRDl9s=";
   };
 
   cargoHash = "sha256-BYUGtaMG/fvQHYJgeSQcW+ZJOrm3N9g6m0c5TX9psJU=";
 
-  nativeBuildInputs = [ installShellFiles ];
-  buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
+  nativeBuildInputs = [
+    installShellFiles
+  ];
+
+  buildInputs = lib.optionals stdenv.isDarwin [
+    libiconv
+    Foundation
+  ];
 
   postInstall = ''
     installShellCompletion target/completions/*.{bash,fish}