git.iko.soy/typeable/nixpkgs
on master help sign in
pokerth: init at 1.1.1
commitf279b253d5250c1001f2baf383a3c353ec66233a authorobadz <obadz-git@obadz.com> dateMon 1 Aug 2016, 11:57 (10 years ago) parent1bc03a7
3 files changed+56−1
pkgs/development/libraries/SDL_mixer/default.nix+11−1 pkgs/games/pokerth/default.nix+41 pkgs/top-level/all-packages.nix+4
pkgs/development/libraries/SDL_mixer/default.nix+11−1
@@ -14,7 +14,17 @@ stdenv.mkDerivation rec {
1414
1515 configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi " --enable-music-native-midi-gpl";
1616
17− postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";
17+ postInstall = ''
18+ ln -s $out/include/SDL/SDL_mixer.h $out/include/
19+
20+ for f in $out/include/SDL/SDL_mixer.h
21+ do
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+ do
24+ substituteInPlace $f --replace "#include \"$i\"" "#include <SDL/$i>"
25+ done
26+ done
27+ '';
1828
1929 meta = with stdenv.lib; {
2030 description = "SDL multi-channel audio mixer library";
pkgs/games/pokerth/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, lib, fetchFromGitHub, qmake4Hook, qt4, protobuf, boost155, tinyxml2, libgcrypt, sqlite, gsasl, curl, SDL, SDL_mixer, libircclient }:
2+
3+let boost = boost155;
4+in stdenv.mkDerivation rec {
5+ name = "${pname}-${version}";
6+ pname = "pokerth";
7+ version = "1.1.1";
8+
9+ src = fetchFromGitHub {
10+ owner = pname;
11+ repo = pname;
12+ rev = "7f3c8a860848c16c8c2f78e3929a65a54ef4c04c";
13+ sha256 = "1md3sl7pdpn3n42k75pxqbkkl19cz4699g1vdi04qpp0jxx09a2k";
14+ };
15+
16+ buildInputs = [ qmake4Hook qt4 protobuf boost tinyxml2 libgcrypt sqlite gsasl curl SDL SDL_mixer libircclient ];
17+
18+ outputs = [ "out" "server" ];
19+
20+ qmakeFlags = [ "pokerth.pro" ];
21+
22+ postPatch = ''
23+ for f in connectivity.pro load.pro pokerth_game.pro pokerth_server.pro
24+ do
25+ substituteInPlace $f \
26+ --replace 'LIB_DIRS =' 'LIB_DIRS = ${boost.out}/lib'
27+ done
28+ '';
29+
30+ postInstall = ''
31+ install -D -m755 bin/pokerth_server $server/bin/pokerth_server
32+ '';
33+
34+ meta = with stdenv.lib; {
35+ homepage = http://www.pokerth.net/;
36+ description = "Open Source Poker client and server";
37+ license = licenses.gpl3;
38+ maintainers = with maintainers; [ obadz ];
39+ platforms = platforms.all;
40+ };
41+}
pkgs/top-level/all-packages.nix+4
@@ -15842,6 +15842,10 @@ in
1584215842
1584315843 pong3d = callPackage ../games/pong3d { };
1584415844
15845+ pokerth = callPackage ../games/pokerth { };
15846+
15847+ pokerth-server = with callPackage ../games/pokerth { }; server;
15848+
1584515849 prboom = callPackage ../games/prboom { };
1584615850
1584715851 privateer = callPackage ../games/privateer { };