srb2: fetch assets from upstream GitLab

Note that fetchgit is used instead of fetchFromGitLab due to LFS and how
upstream is configured.

Closes https://github.com/NixOS/nixpkgs/issues/274797
This commit is contained in:
Donovan Glover 2024-03-18 04:53:46 -04:00
parent 0714cd83df
commit a098790c31
No known key found for this signature in database
GPG key ID: EA7408A77AE1BE65

View file

@ -1,6 +1,6 @@
{ lib
, stdenv
, fetchzip
, fetchgit
, fetchFromGitHub
, cmake
, curl
@ -48,10 +48,11 @@ stdenv.mkDerivation (finalAttrs: {
pname = "srb2-data";
version = finalAttrs.version;
src = fetchzip {
url = "https://github.com/STJr/SRB2/releases/download/SRB2_release_${finalAttrs.version}/SRB2-v${lib.replaceStrings ["."] [""] finalAttrs.version}-Full.zip";
hash = "sha256-/MJVOMMXxHa+xB60WlwLhh5lrZNKnHajTySNZVSlUWE=";
stripRoot = false;
src = fetchgit {
url = "https://git.do.srb2.org/STJr/srb2assets-public";
rev = "SRB2_release_${finalAttrs.version}";
hash = "sha256-OXvO5ZlujIYmYevc62Dtx192dxoujQMNFUCrH5quBBg=";
fetchLFS = true;
};
installPhase = ''