about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-02-08 10:41:20 +0100
committerVladimír Čunát <v@cunat.cz>2022-02-08 10:41:20 +0100
commit3aec1846cc18e97b52ebcce3d7ae0c20e99d372b (patch)
tree022790b1c958faad4f2e7cf3a35ed01d54726075 /pkgs/games
parenta0f1dd662fe121a778e70d05c5502b70dd239ca9 (diff)
parent202f13c7b076fe878ae1b401cf1114c3f6ad2969 (diff)
Merge #157455: linthesia: init at 0.8.0
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/linthesia/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/games/linthesia/default.nix b/pkgs/games/linthesia/default.nix
new file mode 100644
index 0000000000000..0914722a9acbd
--- /dev/null
+++ b/pkgs/games/linthesia/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, python3, libGL, libGLU
+, alsa-lib, glibmm, sqlite, SDL2, SDL2_ttf_2_0_15, SDL2_image, gtk3, wrapGAppsHook }:
+
+stdenv.mkDerivation rec {
+  pname = "linthesia";
+  version = "0.8.0";
+
+  src = fetchFromGitHub {
+    owner = "linthesia";
+    repo = "linthesia";
+    rev = version;
+    sha256 = "sha256-bdW0RlV14ttnK8NizfNfXmZ7zlJOqZCpVvt8vT2Pjys=";
+  };
+
+  postPatch = ''
+    patchShebangs meson_post_install.py
+  '';
+
+  nativeBuildInputs = [ meson ninja pkg-config python3 wrapGAppsHook ];
+  buildInputs = [
+    libGL
+    libGLU
+    alsa-lib
+    glibmm
+    sqlite
+    SDL2
+    SDL2_ttf_2_0_15
+    SDL2_image
+    gtk3.out # icon cache
+  ];
+
+  meta = with lib; {
+    description = "A game of playing music using a MIDI keyboard following a MIDI file";
+    inherit (src.meta) homepage;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+  };
+}