Skip to content

Commit

Permalink
Update unsup
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary committed Feb 18, 2025
1 parent 4e5aa73 commit a8faf38
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bootstrap/patches/com.unascribed.unsup.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"formatVersion": 1,
"name": "unsup",
"uid": "com.unascribed.unsup",
"version": "1.0-rc2",
"version": "1.1-pre3",
"+agents": [
{
"name": "com.unascribed:unsup:1.0-rc2",
"name": "com.unascribed:unsup:1.1-pre3",
"url": "https://repo.sleeping.town"
}
]
Expand Down
24 changes: 14 additions & 10 deletions nix/pi/pissfactory/nixpkgs-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ lib.makeScope newScope (
{
difficulty ? "normal",
forgeServer,
unsup,
stdenvNoCC,
fetchFromGitHub,
nodejs,
Expand Down Expand Up @@ -142,7 +143,8 @@ lib.makeScope newScope (
# `packwiz init` tries to go online so we have to do this
substitute ${escapeStorePath ../../../packwiz/pack.toml.in} pack.toml \
--subst-var-by mc_version "$(jq -r '.minecraft.version' "$src/manifest.json")" \
--subst-var-by forge_version "$(jq -r '.minecraft.modLoaders[0].id | sub("^forge-"; "")' "$src/manifest.json")"
--subst-var-by forge_version "$(jq -r '.minecraft.modLoaders[0].id | sub("^forge-"; "")' "$src/manifest.json")" \
--subst-var-by unsup_version ${escapeShellArg unsup.version}
: > index.toml
python3 ${escapeStorePath ../../../packwiz/gen_pw_mods.py} ${escapeStorePath ../../../mods.json}
substitute ${escapeStorePath ../../../packwiz/forge-installer.pw.toml.in} forge-installer.pw.toml \
Expand Down Expand Up @@ -194,15 +196,17 @@ lib.makeScope newScope (

unsup = callPackage (
{ fetchurl }:
fetchurl (
let
version = "1.0-rc2";
in
{
url = "https://git.sleeping.town/unascribed/unsup/releases/download/v${version}/unsup-${version}.jar";
hash = "sha256-h+SpjMvvpGAlHO1YY+mPqoyrvxoDX0CoKl+9jA3L9fw=";
}
)
let
manifest = fromJSON (readFile ../../../bootstrap/patches/com.unascribed.unsup.json);
inherit (manifest) version;
in
fetchurl {
url = "https://git.sleeping.town/unascribed/unsup/releases/download/v${version}/unsup-${version}.jar";
hash = "sha256-4c7c7ubHNhznwBLeocKBleGLlFKOOjNgH1ZSFZhWumc=";
passthru = {
inherit version;
};
}
) { };

runServer = callPackage (
Expand Down
1 change: 1 addition & 0 deletions packwiz/pack.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ hash = "dummy"
[versions]
forge = "@forge_version@"
minecraft = "@mc_version@"
unsup = "@unsup_version@"

0 comments on commit a8faf38

Please sign in to comment.