From 8e44a9c450b1d702c0172a6712d33294b2b94c3e Mon Sep 17 00:00:00 2001 From: Filippos Tsimas Date: Wed, 13 Nov 2024 19:29:44 +0200 Subject: [PATCH 1/2] maintainers: add ftsimas --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0827d8ddec1b3..9cfa0a946e6be 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7610,6 +7610,12 @@ githubId = 248148; name = "Sigrid Solveig Haflínudóttir"; }; + ftsimas = { + name = "Filippos Tsimas"; + email = "filippos.tsimas@outlook.com"; + github = "ftsimas"; + githubId = 47324723; + }; fuerbringer = { email = "severin@fuerbringer.info"; github = "fuerbringer"; From 89cd194eb3e5d0414ae0144c634f8048da776707 Mon Sep 17 00:00:00 2001 From: Filippos Tsimas Date: Wed, 13 Nov 2024 20:00:41 +0200 Subject: [PATCH 2/2] itgmania: init at 0.9.0 --- pkgs/by-name/it/itgmania/package.nix | 94 ++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 pkgs/by-name/it/itgmania/package.nix diff --git a/pkgs/by-name/it/itgmania/package.nix b/pkgs/by-name/it/itgmania/package.nix new file mode 100644 index 0000000000000..2f34f246d5fa2 --- /dev/null +++ b/pkgs/by-name/it/itgmania/package.nix @@ -0,0 +1,94 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + nasm, + pkg-config, + copyDesktopItems, + alsa-lib, + glew, + glib, + gtk3, + libmad, + libogg, + libpulseaudio, + libusb-compat-0_1, + libvorbis, + libXtst, + udev, + makeWrapper, + makeDesktopItem, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "itgmania"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "itgmania"; + repo = "itgmania"; + rev = "v${finalAttrs.version}"; + fetchSubmodules = true; + hash = "sha256-SAEYkAPNUjGNfNnHfwyOj65i2SpEX0ct/fREob5/6fI="; + }; + + nativeBuildInputs = [ + cmake + nasm + pkg-config + makeWrapper + copyDesktopItems + ]; + + buildInputs = [ + alsa-lib + glew + glib + gtk3 + libmad + libogg + libpulseaudio + libusb-compat-0_1 + libvorbis + libXtst + udev + ]; + + cmakeFlags = lib.optionals (!stdenv.hostPlatform.isx86) [ "-DWITH_MINIMAID=off" ]; + + postInstall = '' + makeWrapper $out/itgmania/itgmania $out/bin/itgmania \ + --chdir $out/itgmania + + mkdir -p $out/share/icons/hicolor/scalable/apps/ + ln -s $out/itgmania/Data/logo.svg $out/share/icons/hicolor/scalable/apps/itgmania.svg + ''; + + desktopItems = [ + (makeDesktopItem { + name = "itgmania"; + desktopName = "ITGmania"; + genericName = "Rhythm and dance game"; + tryExec = "itgmania"; + exec = "itgmania"; + terminal = false; + icon = "itgmania"; + type = "Application"; + comment = "A cross-platform rhythm video game."; + categories = [ + "Game" + "ArcadeGame" + ]; + }) + ]; + + meta = { + homepage = "https://www.itgmania.com/"; + description = "Fork of StepMania 5.1, improved for the post-ITG community"; + platforms = lib.platforms.linux; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ftsimas ]; + mainProgram = "itgmania"; + }; +})