2023-06-22 12:04:55 +00:00
|
|
|
{ lib
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
2023-06-22 12:06:33 +00:00
|
|
|
, SDL2_ttf
|
2023-06-22 12:04:55 +00:00
|
|
|
, alsa-lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibmm
|
|
|
|
, gtk3
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, sqlite
|
|
|
|
, stdenv
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2023-06-22 12:04:55 +00:00
|
|
|
}:
|
2022-01-30 23:30:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "linthesia";
|
2023-07-11 22:13:54 +00:00
|
|
|
version = "unstable-2023-05-23";
|
2022-01-30 23:30:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linthesia";
|
|
|
|
repo = "linthesia";
|
2023-07-11 22:13:54 +00:00
|
|
|
rev = "1f2701241f8865c2f5c14a97b81ae64884cf0396";
|
|
|
|
sha256 = "sha256-3uPcpDUGtAGW9q/u8Cn+0bNqikII1Y/a0PKARW/5nao=";
|
2022-01-30 23:30:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config python3 wrapGAppsHook3 ];
|
2022-01-30 23:30:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
alsa-lib
|
|
|
|
glibmm
|
|
|
|
sqlite
|
|
|
|
SDL2
|
2023-06-22 12:06:33 +00:00
|
|
|
SDL2_ttf
|
2022-01-30 23:30:38 +00:00
|
|
|
SDL2_image
|
|
|
|
gtk3.out # icon cache
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Game of playing music using a MIDI keyboard following a MIDI file";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "linthesia";
|
2022-01-30 23:30:38 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2022-01-30 23:30:38 +00:00
|
|
|
};
|
|
|
|
}
|