diff options
Diffstat (limited to 'nixpkgs/pkgs/games/linthesia/default.nix')
-rw-r--r-- | nixpkgs/pkgs/games/linthesia/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/linthesia/default.nix b/nixpkgs/pkgs/games/linthesia/default.nix new file mode 100644 index 000000000000..1200afa4f2f7 --- /dev/null +++ b/nixpkgs/pkgs/games/linthesia/default.nix @@ -0,0 +1,56 @@ +{ lib +, SDL2 +, SDL2_image +, SDL2_ttf +, alsa-lib +, fetchFromGitHub +, glibmm +, gtk3 +, libGL +, libGLU +, meson +, ninja +, pkg-config +, python3 +, sqlite +, stdenv +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "linthesia"; + version = "unstable-2023-05-23"; + + src = fetchFromGitHub { + owner = "linthesia"; + repo = "linthesia"; + rev = "1f2701241f8865c2f5c14a97b81ae64884cf0396"; + sha256 = "sha256-3uPcpDUGtAGW9q/u8Cn+0bNqikII1Y/a0PKARW/5nao="; + }; + + postPatch = '' + patchShebangs meson_post_install.py + ''; + + nativeBuildInputs = [ meson ninja pkg-config python3 wrapGAppsHook ]; + buildInputs = [ + libGL + libGLU + alsa-lib + glibmm + sqlite + SDL2 + SDL2_ttf + SDL2_image + gtk3.out # icon cache + ]; + + meta = with lib; { + description = "A game of playing music using a MIDI keyboard following a MIDI file"; + mainProgram = "linthesia"; + inherit (src.meta) homepage; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ckie ]; + }; +} |