summaryrefslogtreecommitdiff
path: root/pkgs/theseus/wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/theseus/wrapper.nix')
-rw-r--r--pkgs/theseus/wrapper.nix73
1 files changed, 0 insertions, 73 deletions
diff --git a/pkgs/theseus/wrapper.nix b/pkgs/theseus/wrapper.nix
deleted file mode 100644
index c907451..0000000
--- a/pkgs/theseus/wrapper.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- lib,
- stdenv,
- symlinkJoin,
- theseus-unwrapped,
- wrapGAppsHook,
- dbus,
- flite,
- freetype,
- glib-networking,
- glfw,
- gtk3,
- jdk8,
- jdk17,
- jdks ? [jdk8 jdk17],
- libappindicator-gtk3,
- libGL,
- libpulseaudio,
- librsvg,
- libsoup,
- openal,
- webkitgtk,
- xorg,
- ...
-}: let
- theseusFinal = theseus-unwrapped;
-in
- symlinkJoin {
- name = "theseus-${theseusFinal.version}";
-
- paths = [theseusFinal];
-
- nativeBuildInputs = [
- wrapGAppsHook
- ];
-
- buildInputs = lib.optionals stdenv.isLinux [
- dbus
- freetype
- gtk3
- libappindicator-gtk3
- librsvg
- libsoup
- webkitgtk
- ];
-
- preFixup = let
- libPath = lib.makeLibraryPath ([
- flite
- glfw
- libGL
- libpulseaudio
- openal
- stdenv.cc.cc.lib
- ]
- ++ (with xorg; [
- libX11
- libXcursor
- libXext
- libXxf86vm
- libXrandr
- ]));
- binPath = lib.makeBinPath (lib.optionals stdenv.isLinux [xorg.xrandr] ++ jdks);
- in ''
- gappsWrapperArgs+=(
- ${lib.optionalString stdenv.isLinux "--set LD_LIBRARY_PATH /run/opengl-driver/lib:${libPath}"}
- ${lib.optionalString stdenv.isLinux "--prefix GIO_MODULE_DIR : ${glib-networking}/lib/gio/modules/"}
- --prefix PATH : ${binPath}
- )
- '';
-
- inherit (theseusFinal) meta;
- }