summary refs log tree commit diff
path: root/pkgs/games/mar1d
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer@bar-yam.me>2021-04-20 16:45:30 -0400
committerTaeer Bar-Yam <taeer@bar-yam.me>2021-04-21 22:46:05 -0400
commitf0975780a72c4a626c0a1537cd50ec57cbc7d850 (patch)
tree7c359cfa62e2580f521fe28dcaba34843eae25a6 /pkgs/games/mar1d
parentbb9d0c30384520aae074d5d43ec1d9e3cdb181eb (diff)
downloadnixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar.gz
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar.bz2
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar.lz
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar.xz
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.tar.zst
nixpkgs-f0975780a72c4a626c0a1537cd50ec57cbc7d850.zip
mar1d: 0.2.0 -> 0.3.0
Diffstat (limited to 'pkgs/games/mar1d')
-rw-r--r--pkgs/games/mar1d/default.nix68
1 files changed, 22 insertions, 46 deletions
diff --git a/pkgs/games/mar1d/default.nix b/pkgs/games/mar1d/default.nix
index 1323e1a8ac9..1715a68f5d8 100644
--- a/pkgs/games/mar1d/default.nix
+++ b/pkgs/games/mar1d/default.nix
@@ -1,58 +1,34 @@
-{ lib, stdenv
-, fetchFromGitHub
-, cmake
+{ stdenv
+, lib
+, SDL2
+, SDL2_mixer
 , libGLU
-, xlibsWrapper
-, xorg
-, xinput_calibrator
-, doxygen
-, libpthreadstubs
-, alsaLib
-, alsaOss
-, libao
-, width ? 30
-, mute ? false
-, effects ? false
-, sensitivity ? 5
-, reverseY ? false
+, libconfig
+, meson
+, ninja
+, pkg-config
+, fetchFromGitHub
 }:
 
 stdenv.mkDerivation rec {
   pname = "MAR1D";
-  version = "0.2.0";
-  options = "-w${toString width}"
-          + " -s${toString sensitivity}"
-          + (if mute then " -m" else "")
-          + (if effects then " -f" else "")
-          + (if reverseY then " -r" else "");
+  version = "0.3.0";
 
   src = fetchFromGitHub {
-    sha256 = "152w5dnlxzv60cl24r5cmrj2q5ar0jiimrmxnp87kf4d2dpbnaq7";
+    sha256 = "sha256-/QZH2H0PFCLeweXUE11vimLnJTt86PjnTnHC9vWkKsk=";
     rev = "v${version}";
-    repo = "fp_mario";
-    owner = "olynch";
+    repo = "MAR1D";
+    owner = "Radvendii";
   };
 
-  buildInputs =
-    [
-      alsaLib
-      alsaOss
-      cmake
-      doxygen
-      libao
-      libpthreadstubs
-      libGLU
-      xlibsWrapper
-      xinput_calibrator
-      xorg.libXrandr
-      xorg.libXi
-      xorg.xinput
-      xorg.libXxf86vm
-    ];
+  nativeBuildInputs = [ meson ninja pkg-config ];
 
-  preConfigure = ''
-    cd src
-  '';
+  buildInputs = [
+    SDL2
+    SDL2_mixer
+    libconfig
+    libGLU
+  ];
 
   meta = with lib; {
     description = "First person Super Mario Bros";
@@ -62,9 +38,9 @@ stdenv.mkDerivation rec {
       original, however, the game still takes place in a two dimensional world.
       You must view the world as mario does, as a one dimensional line.
     '';
-    homepage = "https://github.com/olynch/fp_mario";
+    homepage = "https://mar1d.com";
     license = licenses.agpl3;
     maintainers = with maintainers; [ taeer ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }