summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-03-16 00:57:40 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-03-16 22:06:16 -0300
commit5069b4da474d976b13c74d3410247f4704cac18c (patch)
tree0f3ecb3bbe70c878f02c1e40f758c1f63c078959 /pkgs/games
parent5d0b55cc00daa59e611bef1bcf3e1542950fdd35 (diff)
downloadnixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar.gz
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar.bz2
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar.lz
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar.xz
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.tar.zst
nixpkgs-5069b4da474d976b13c74d3410247f4704cac18c.zip
chromium-bsu: init at 0.9.16.1
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/chromium-bsu/default.nix68
1 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/games/chromium-bsu/default.nix b/pkgs/games/chromium-bsu/default.nix
new file mode 100644
index 00000000000..1ab2fb8722b
--- /dev/null
+++ b/pkgs/games/chromium-bsu/default.nix
@@ -0,0 +1,68 @@
+{ lib
+, stdenv
+, fetchurl
+, SDL2
+, SDL2_image
+, SDL2_mixer
+, fontconfig
+, freealut
+, freeglut
+, ftgl
+, gettext
+, glpng
+, libGL
+, libGLU
+, openal
+, pkg-config
+, quesoglc
+}:
+
+stdenv.mkDerivation rec {
+  pname = "chromium-bsu";
+  version = "0.9.16.1";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/chromium-bsu/Chromium%20B.S.U.%20source%20code/${pname}-${version}.tar.gz";
+    hash = "sha256-ocFBo00ZpZYHroEWahmGTrjITPhrFVRi/tMabVbhYko=";
+  };
+
+  nativeBuildInputs = [
+    gettext
+    pkg-config
+  ];
+  buildInputs = [
+    SDL2
+    SDL2_image
+    SDL2_mixer
+    fontconfig
+    freealut
+    freeglut
+    ftgl
+    glpng
+    libGL
+    libGLU
+    openal
+    quesoglc
+  ];
+
+  # Autodetection is somewhat buggy; this is to avoid SLD1 to be loaded
+  configureFlags = [
+    "--disable-sdlimage"
+    "--disable-sdlmixer"
+  ];
+
+
+  postInstall = ''
+    install -D misc/chromium-bsu.png $out/share/pixmaps/chromium-bsu.png
+    install -D misc/chromium-bsu.desktop $out/share/applications/chromium-bsu.desktop
+  '';
+
+  meta = with lib; {
+    homepage = "http://chromium-bsu.sourceforge.net/";
+    description = "A fast paced, arcade-style, top-scrolling space shooter";
+    license = licenses.artistic1;
+    maintainers = with maintainers; [ AndersonTorres ];
+    platforms = platforms.unix;
+  };
+}
+# TODO [ AndersonTorres ]: joystick; gothic uralic font