Add olympus(celeste mod tool)
This commit is contained in:
parent
47092aea3c
commit
8bf46eb0e0
3 changed files with 45 additions and 0 deletions
|
@ -3,4 +3,5 @@ final: prev: rec {
|
||||||
sources = prev.callPackage (import ./_sources/generated.nix) { };
|
sources = prev.callPackage (import ./_sources/generated.nix) { };
|
||||||
# then, call packages with `final.callPackage`
|
# then, call packages with `final.callPackage`
|
||||||
go-fold-if-err-nil = final.callPackage ./go-fold-if-err-nil.nix { };
|
go-fold-if-err-nil = final.callPackage ./go-fold-if-err-nil.nix { };
|
||||||
|
olympus = final.callPackage ./olympus.nix { };
|
||||||
}
|
}
|
||||||
|
|
43
pkgs/olympus.nix
Normal file
43
pkgs/olympus.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ pkgs, makeDesktopItem }:
|
||||||
|
let
|
||||||
|
olympus = pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "olympus";
|
||||||
|
version = "2551";
|
||||||
|
|
||||||
|
# https://everestapi.github.io/
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://dev.azure.com/EverestAPI/Olympus/_apis/build/builds/${version}/artifacts?artifactName=linux.main&$format=zip#linux.main.zip";
|
||||||
|
hash = "sha256-Iq/FjDwckbOKE7s3xud0OQrxxjGqL0ZR9MQIaLs54OU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pkgs.unzip ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/opt/olympus/"
|
||||||
|
mv dist.zip "$out/opt/olympus/" && cd "$out/opt/olympus/"
|
||||||
|
|
||||||
|
unzip dist.zip && rm dist.zip
|
||||||
|
mkdir $out && echo XDG_DATA_HOME=$out
|
||||||
|
|
||||||
|
echo y | XDG_DATA_HOME="$out/share/" bash install.sh
|
||||||
|
sed -i "/ldconfig/d" ./love && rm ./usr/lib/libSDL2-2.0.so.0
|
||||||
|
sed -i "s/Exec=.*/Exec=olympus %u/g" ../../share/applications/Olympus.desktop
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.buildFHSUserEnv {
|
||||||
|
name = "olympus";
|
||||||
|
runScript = "${olympus}/opt/olympus/olympus";
|
||||||
|
targetPkgs = pkgs: [
|
||||||
|
pkgs.freetype
|
||||||
|
pkgs.zlib
|
||||||
|
pkgs.SDL2
|
||||||
|
pkgs.curl
|
||||||
|
pkgs.libpulseaudio
|
||||||
|
pkgs.gtk3
|
||||||
|
pkgs.glib
|
||||||
|
];
|
||||||
|
|
||||||
|
# https://github.com/EverestAPI/Olympus/blob/main/lib-linux/olympus.desktop
|
||||||
|
# https://stackoverflow.com/questions/8822097/how-to-replace-a-whole-line-with-sed
|
||||||
|
extraInstallCommands = ''cp -r "${olympus}/share/" $out'';
|
||||||
|
}
|
|
@ -8,6 +8,7 @@
|
||||||
mumble
|
mumble
|
||||||
polymc
|
polymc
|
||||||
(retroarch.override {cores = [libretro.snes9x]; })
|
(retroarch.override {cores = [libretro.snes9x]; })
|
||||||
|
olympus
|
||||||
godot
|
godot
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue