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:
parent
0714cd83df
commit
a098790c31
1 changed files with 6 additions and 5 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue