summary refs log tree commit diff
path: root/pkgs/applications/emulators/goldberg-emu/default.nix
diff options
context:
space:
mode:
authorIvar Scholten <ivar.scholten@protonmail.com>2022-03-22 01:56:49 +0100
committerIvar Scholten <ivar.scholten@protonmail.com>2022-03-22 02:02:43 +0100
commit6fc40c85c4709c70eb57c23701977f1bf94992a1 (patch)
treebc9095e46ac5744247aabea2b3b4cc2a9c68b077 /pkgs/applications/emulators/goldberg-emu/default.nix
parent4c3c80df545ec5cb26b5480979c3e3f93518cbe5 (diff)
downloadnixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar.gz
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar.bz2
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar.lz
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar.xz
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.tar.zst
nixpkgs-6fc40c85c4709c70eb57c23701977f1bf94992a1.zip
goldberg-emu: init at 0.2.5
Diffstat (limited to 'pkgs/applications/emulators/goldberg-emu/default.nix')
-rw-r--r--pkgs/applications/emulators/goldberg-emu/default.nix52
1 files changed, 52 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 00000000000..4a8d3e3b85e
--- /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 ];
+  };
+}