Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pkgs/development/libraries/SDL2_ttf/2.0.15.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:

stdenv.mkDerivation rec {
pname = "SDL2_ttf";
version = "2.0.15";

src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
};

configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";

nativeBuildInputs = [ pkg-config ];

buildInputs = [ SDL2 freetype libGL ]
++ lib.optional stdenv.isDarwin darwin.libobjc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

darwin shouldn't be used as an input like pkgs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but that's a problem in the SDL2_ttf expressions, in both versions. Not really in this PR.


meta = with lib; {
description = "SDL TrueType library";
platforms = platforms.unix;
license = licenses.zlib;
homepage = "https://www.libsdl.org/projects/SDL_ttf/";
};
}
38 changes: 38 additions & 0 deletions pkgs/games/linthesia/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19966,6 +19966,8 @@ with pkgs;

SDL2_ttf = callPackage ../development/libraries/SDL2_ttf { };

SDL2_ttf_2_0_15 = callPackage ../development/libraries/SDL2_ttf/2.0.15.nix { };

sdnotify-wrapper = skawarePackages.sdnotify-wrapper;

sdrplay = callPackage ../applications/radio/sdrplay {};
Expand Down Expand Up @@ -22638,6 +22640,8 @@ with pkgs;

linuxConsoleTools = callPackage ../os-specific/linux/consoletools { };

linthesia = callPackage ../games/linthesia/default.nix { };

libreelec-dvb-firmware = callPackage ../os-specific/linux/firmware/libreelec-dvb-firmware { };

openiscsi = callPackage ../os-specific/linux/open-iscsi { };
Expand Down