diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-23 05:00:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 05:00:31 +0100 |
commit | 47102eca11b76d647ec214f9598814339fa91539 (patch) | |
tree | 20e514f1d7d2d5ec6961787584d0202cb034bce8 | |
parent | aeadc86174993ff5fae0c1d7f8d2adb371cacb9e (diff) | |
parent | 6fc40c85c4709c70eb57c23701977f1bf94992a1 (diff) | |
download | nixlib-47102eca11b76d647ec214f9598814339fa91539.tar nixlib-47102eca11b76d647ec214f9598814339fa91539.tar.gz nixlib-47102eca11b76d647ec214f9598814339fa91539.tar.bz2 nixlib-47102eca11b76d647ec214f9598814339fa91539.tar.lz nixlib-47102eca11b76d647ec214f9598814339fa91539.tar.xz nixlib-47102eca11b76d647ec214f9598814339fa91539.tar.zst nixlib-47102eca11b76d647ec214f9598814339fa91539.zip |
Merge pull request #165192 from IvarWithoutBones/init/goldberg
-rw-r--r-- | pkgs/applications/emulators/goldberg-emu/default.nix | 52 | ||||
-rw-r--r-- | pkgs/applications/emulators/goldberg-emu/dont-install-unsupported.patch | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 88 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/goldberg-emu/default.nix b/pkgs/applications/emulators/goldberg-emu/default.nix new file mode 100644 index 000000000000..4a8d3e3b85ec --- /dev/null +++ b/pkgs/applications/emulators/goldberg-emu/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitLab +, cmake +, protobuf + }: + +stdenv.mkDerivation rec { + pname = "goldberg-emu"; + version = "0.2.5"; + + src = fetchFromGitLab { + owner = "mr_goldberg"; + repo = "goldberg_emulator"; + rev = version; + sha256 = "sha256-goOgMNjtDmIKOAv9sZwnPOY0WqTN90LFJ5iEp3Vkzog="; + }; + + # It attempts to install windows-only libraries which we never build + patches = [ ./dont-install-unsupported.patch ]; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ protobuf ]; + + cmakeFlags = [ + "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}/share/goldberg" + ]; + + preFixup = '' + mkdir -p $out/{bin,lib} + chmod +x $out/share/goldberg/tools/find_interfaces.sh + + ln -s $out/share/goldberg/libsteam_api.so $out/lib + ln -s $out/share/goldberg/lobby_connect/lobby_connect $out/bin + ln -s $out/share/goldberg/tools/generate_interfaces_file $out/bin + ln -s $out/share/goldberg/tools/find_interfaces.sh $out/bin/find_interfaces + ''; + + meta = with lib; { + homepage = "https://gitlab.com/Mr_Goldberg/goldberg_emulator"; + changelog = "https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/releases"; + description = "Program that emulates steam online features"; + longDescription = '' + Steam emulator that emulates steam online features. Lets you play games that + use the steam multiplayer apis on a LAN without steam or an internet connection. + ''; + mainProgram = "lobby_connect"; + license = licenses.lgpl3Only; + platforms = platforms.unix; + maintainers = [ maintainers.ivar ]; + }; +} diff --git a/pkgs/applications/emulators/goldberg-emu/dont-install-unsupported.patch b/pkgs/applications/emulators/goldberg-emu/dont-install-unsupported.patch new file mode 100644 index 000000000000..7dba7e25b970 --- /dev/null +++ b/pkgs/applications/emulators/goldberg-emu/dont-install-unsupported.patch @@ -0,0 +1,34 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index abaace2..5e3465c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -182,10 +182,10 @@ if(WIN32) + RUNTIME DESTINATION ./ + ) + else() +- install(TARGETS +- ${LIB_STEAMCLIENT} +- LIBRARY DESTINATION ./ +- ) ++ # install(TARGETS ++ #${LIB_STEAMCLIENT} ++ #LIBRARY DESTINATION ./ ++ #) + endif() + + if(NOT WIN32) +@@ -220,10 +220,10 @@ if(WIN32) + RUNTIME DESTINATION ./ + ) + else() +- install(TARGETS +- ${LIB_STEAMNETWORKINGSOCKETS} +- LIBRARY DESTINATION ./ +- ) ++ # install(TARGETS ++ # ${LIB_STEAMNETWORKINGSOCKETS} ++ # LIBRARY DESTINATION ./ ++ # ) + endif() + + if(NOT WIN32) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a7cdcc208d72..f7955497ad03 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25846,6 +25846,8 @@ with pkgs; tuigreet = callPackage ../os-specific/linux/tuigreet { }; }; + goldberg-emu = callPackage ../applications/emulators/goldberg-emu { }; + goldendict = libsForQt5.callPackage ../applications/misc/goldendict { inherit (darwin) libiconv; }; |