tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge #157455: linthesia: init at 0.8.0
Vladimír Čunát
4 years ago
3aec1846
a0f1dd66
+67
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
SDL2_ttf
2.0.15.nix
games
linthesia
default.nix
top-level
all-packages.nix
+25
pkgs/development/libraries/SDL2_ttf/2.0.15.nix
···
1
1
+
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "SDL2_ttf";
5
5
+
version = "2.0.15";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
9
9
+
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
10
10
+
};
11
11
+
12
12
+
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
13
13
+
14
14
+
nativeBuildInputs = [ pkg-config ];
15
15
+
16
16
+
buildInputs = [ SDL2 freetype libGL ]
17
17
+
++ lib.optional stdenv.isDarwin darwin.libobjc;
18
18
+
19
19
+
meta = with lib; {
20
20
+
description = "SDL TrueType library";
21
21
+
platforms = platforms.unix;
22
22
+
license = licenses.zlib;
23
23
+
homepage = "https://www.libsdl.org/projects/SDL_ttf/";
24
24
+
};
25
25
+
}
+38
pkgs/games/linthesia/default.nix
···
1
1
+
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, python3, libGL, libGLU
2
2
+
, alsa-lib, glibmm, sqlite, SDL2, SDL2_ttf_2_0_15, SDL2_image, gtk3, wrapGAppsHook }:
3
3
+
4
4
+
stdenv.mkDerivation rec {
5
5
+
pname = "linthesia";
6
6
+
version = "0.8.0";
7
7
+
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "linthesia";
10
10
+
repo = "linthesia";
11
11
+
rev = version;
12
12
+
sha256 = "sha256-bdW0RlV14ttnK8NizfNfXmZ7zlJOqZCpVvt8vT2Pjys=";
13
13
+
};
14
14
+
15
15
+
postPatch = ''
16
16
+
patchShebangs meson_post_install.py
17
17
+
'';
18
18
+
19
19
+
nativeBuildInputs = [ meson ninja pkg-config python3 wrapGAppsHook ];
20
20
+
buildInputs = [
21
21
+
libGL
22
22
+
libGLU
23
23
+
alsa-lib
24
24
+
glibmm
25
25
+
sqlite
26
26
+
SDL2
27
27
+
SDL2_ttf_2_0_15
28
28
+
SDL2_image
29
29
+
gtk3.out # icon cache
30
30
+
];
31
31
+
32
32
+
meta = with lib; {
33
33
+
description = "A game of playing music using a MIDI keyboard following a MIDI file";
34
34
+
inherit (src.meta) homepage;
35
35
+
license = licenses.gpl2Plus;
36
36
+
platforms = platforms.linux;
37
37
+
};
38
38
+
}
+4
pkgs/top-level/all-packages.nix
···
19808
19808
19809
19809
SDL2_ttf = callPackage ../development/libraries/SDL2_ttf { };
19810
19810
19811
19811
+
SDL2_ttf_2_0_15 = callPackage ../development/libraries/SDL2_ttf/2.0.15.nix { };
19812
19812
+
19811
19813
sdnotify-wrapper = skawarePackages.sdnotify-wrapper;
19812
19814
19813
19815
sdrplay = callPackage ../applications/radio/sdrplay {};
···
22442
22444
lieer = callPackage ../applications/networking/lieer {};
22443
22445
22444
22446
linuxConsoleTools = callPackage ../os-specific/linux/consoletools { };
22447
22447
+
22448
22448
+
linthesia = callPackage ../games/linthesia/default.nix { };
22445
22449
22446
22450
libreelec-dvb-firmware = callPackage ../os-specific/linux/firmware/libreelec-dvb-firmware { };
22447
22451