lol

scrcpy: migrate to use hash

authored by

Fabian Affolter and committed by
GitHub
5e45b7c3 44597331

+4 -4
+4 -4
pkgs/misc/scrcpy/default.nix
··· 21 21 name = "scrcpy-server"; 22 22 inherit version; 23 23 url = "https://github.com/Genymobile/scrcpy/releases/download/v${version}/scrcpy-server-v${version}"; 24 - sha256 = "sha256-yFxKqEMF77aRFc1JehIOvdECWJk7TPEjqCRbPZnUmHQ="; 24 + hash = "sha256-yFxKqEMF77aRFc1JehIOvdECWJk7TPEjqCRbPZnUmHQ="; 25 25 }; 26 26 in 27 27 stdenv.mkDerivation rec { ··· 30 30 31 31 src = fetchFromGitHub { 32 32 owner = "Genymobile"; 33 - repo = pname; 34 - rev = "v${version}"; 35 - sha256 = "sha256-2/IsDZJAtERs2AG6J4LR/ffy4XYmaj0KeSwZLQ849Lc="; 33 + repo = "scrcpy"; 34 + rev = "refs/tags/v${version}"; 35 + hash = "sha256-2/IsDZJAtERs2AG6J4LR/ffy4XYmaj0KeSwZLQ849Lc="; 36 36 }; 37 37 38 38 # display.c: When run without a hardware accelerator, this allows the command to continue working rather than failing unexpectedly.