scrcpy: migrate to use hash

This commit is contained in:
Fabian Affolter 2023-11-13 12:18:10 +01:00 committed by GitHub
parent 44597331aa
commit 5e45b7c356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.