summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-11-13 12:18:10 +0100
committerGitHub <noreply@github.com>2023-11-13 12:18:10 +0100
commit5e45b7c356ba14f9524929622e86aa3238d812a9 (patch)
tree12402e2338f845243c31a4ac6b9353a5232601c2 /pkgs/misc
parent44597331aa7f0078f453d8105098ab0581385619 (diff)
scrcpy: migrate to use hash
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/scrcpy/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/misc/scrcpy/default.nix b/pkgs/misc/scrcpy/default.nix
index 5520aa7b8bdec..78479199b140d 100644
--- a/pkgs/misc/scrcpy/default.nix
+++ b/pkgs/misc/scrcpy/default.nix
@@ -21,7 +21,7 @@ let
     name = "scrcpy-server";
     inherit version;
     url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}";
-    sha256 = "sha256-yFxKqEMF77aRFc1JehIOvdECWJk7TPEjqCRbPZnUmHQ=";
+    hash = "sha256-yFxKqEMF77aRFc1JehIOvdECWJk7TPEjqCRbPZnUmHQ=";
   };
 in
 stdenv.mkDerivation rec {
@@ -30,9 +30,9 @@ stdenv.mkDerivation rec {
 
   src = fetchFromGitHub {
     owner = "Genymobile";
-    repo = pname;
-    rev = "v${version}";
-    sha256 = "sha256-2/IsDZJAtERs2AG6J4LR/ffy4XYmaj0KeSwZLQ849Lc=";
+    repo = "scrcpy";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-2/IsDZJAtERs2AG6J4LR/ffy4XYmaj0KeSwZLQ849Lc=";
   };
 
   #   display.c: When run without a hardware accelerator, this allows the command to continue working rather than failing unexpectedly.