Merge pull request #211149 from Majiir/fix-papermc-override
This commit is contained in:
commit
41c19d480a
|
@ -1,14 +1,16 @@
|
||||||
{ lib, stdenv, fetchurl, bash, jre }:
|
{ lib, stdenv, fetchurl, bash, jre }:
|
||||||
let
|
|
||||||
mcVersion = "1.19.3";
|
stdenv.mkDerivation rec {
|
||||||
buildNum = "375";
|
pname = "papermc";
|
||||||
jar = fetchurl {
|
version = "1.19.3.375";
|
||||||
|
|
||||||
|
jar = let
|
||||||
|
mcVersion = lib.versions.pad 3 version;
|
||||||
|
buildNum = builtins.elemAt (lib.versions.splitVersion version) 3;
|
||||||
|
in fetchurl {
|
||||||
url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${mcVersion}-${buildNum}.jar";
|
url = "https://papermc.io/api/v2/projects/paper/versions/${mcVersion}/builds/${buildNum}/downloads/paper-${mcVersion}-${buildNum}.jar";
|
||||||
sha256 = "sha256-NAl4+mCkO6xQQpIx2pd9tYX2N8VQa+2dmFwyBNbDa10=";
|
sha256 = "sha256-NAl4+mCkO6xQQpIx2pd9tYX2N8VQa+2dmFwyBNbDa10=";
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation {
|
|
||||||
pname = "papermc";
|
|
||||||
version = "${mcVersion}r${buildNum}";
|
|
||||||
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue