tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
pokerth: init at 1.1.1
obadz
9 years ago
f279b253
1bc03a7b
+56
-1
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
SDL_mixer
default.nix
games
pokerth
default.nix
top-level
all-packages.nix
+11
-1
pkgs/development/libraries/SDL_mixer/default.nix
reviewed
···
14
14
15
15
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi " --enable-music-native-midi-gpl";
16
16
17
17
-
postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";
17
17
+
postInstall = ''
18
18
+
ln -s $out/include/SDL/SDL_mixer.h $out/include/
19
19
+
20
20
+
for f in $out/include/SDL/SDL_mixer.h
21
21
+
do
22
22
+
for i in SDL_types.h SDL_rwops.h SDL_audio.h SDL_endian.h SDL_version.h begin_code.h close_code.h
23
23
+
do
24
24
+
substituteInPlace $f --replace "#include \"$i\"" "#include <SDL/$i>"
25
25
+
done
26
26
+
done
27
27
+
'';
18
28
19
29
meta = with stdenv.lib; {
20
30
description = "SDL multi-channel audio mixer library";
+41
pkgs/games/pokerth/default.nix
reviewed
···
1
1
+
{ stdenv, lib, fetchFromGitHub, qmake4Hook, qt4, protobuf, boost155, tinyxml2, libgcrypt, sqlite, gsasl, curl, SDL, SDL_mixer, libircclient }:
2
2
+
3
3
+
let boost = boost155;
4
4
+
in stdenv.mkDerivation rec {
5
5
+
name = "${pname}-${version}";
6
6
+
pname = "pokerth";
7
7
+
version = "1.1.1";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = pname;
11
11
+
repo = pname;
12
12
+
rev = "7f3c8a860848c16c8c2f78e3929a65a54ef4c04c";
13
13
+
sha256 = "1md3sl7pdpn3n42k75pxqbkkl19cz4699g1vdi04qpp0jxx09a2k";
14
14
+
};
15
15
+
16
16
+
buildInputs = [ qmake4Hook qt4 protobuf boost tinyxml2 libgcrypt sqlite gsasl curl SDL SDL_mixer libircclient ];
17
17
+
18
18
+
outputs = [ "out" "server" ];
19
19
+
20
20
+
qmakeFlags = [ "pokerth.pro" ];
21
21
+
22
22
+
postPatch = ''
23
23
+
for f in connectivity.pro load.pro pokerth_game.pro pokerth_server.pro
24
24
+
do
25
25
+
substituteInPlace $f \
26
26
+
--replace 'LIB_DIRS =' 'LIB_DIRS = ${boost.out}/lib'
27
27
+
done
28
28
+
'';
29
29
+
30
30
+
postInstall = ''
31
31
+
install -D -m755 bin/pokerth_server $server/bin/pokerth_server
32
32
+
'';
33
33
+
34
34
+
meta = with stdenv.lib; {
35
35
+
homepage = http://www.pokerth.net/;
36
36
+
description = "Open Source Poker client and server";
37
37
+
license = licenses.gpl3;
38
38
+
maintainers = with maintainers; [ obadz ];
39
39
+
platforms = platforms.all;
40
40
+
};
41
41
+
}
+4
pkgs/top-level/all-packages.nix
reviewed
···
15842
15842
15843
15843
pong3d = callPackage ../games/pong3d { };
15844
15844
15845
15845
+
pokerth = callPackage ../games/pokerth { };
15846
15846
+
15847
15847
+
pokerth-server = with callPackage ../games/pokerth { }; server;
15848
15848
+
15845
15849
prboom = callPackage ../games/prboom { };
15846
15850
15847
15851
privateer = callPackage ../games/privateer { };