obinskit: fix hash and add necessary referer header

Co-authored-by: Robert Schütz <github@dotlambda.de>
This commit is contained in:
Bit Borealis 2023-09-11 14:40:36 +00:00 committed by Weijia Wang
parent 7c6dc82d77
commit 1c37a89390

View file

@ -25,7 +25,8 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "https://s3.hexcore.xyz/occ/linux/tar/ObinsKit_${version}_x64.tar.gz";
sha256 = "1kcn41wmwcx6q70spa9a1qh7wfrj1sk4v4i58lbnf9kc6vasw41a";
curlOptsList = [ "--header" "Referer: https://www.hexcore.xyz/" ];
hash = "sha256-KhCu1TZsJmcXRSWSTaYOMjt+IA4qqavBwaYzXnkgls0=";
};
unpackPhase = "tar -xzf $src";