about summary refs log tree commit diff
path: root/pkgs/servers/ps3netsrv/default.nix
blob: 2288942ebf302cf42c5abd2d328d9ce89e235309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit }:

stdenv.mkDerivation {
  pname = "ps3netsrv";
  version = "1.1.0";

  enableParallelBuilding = true;

  src = fetchgit {
    url = "https://github.com/dirkvdb/ps3netsrv--";
    fetchSubmodules = true;
    rev = "e54a66cbf142b86e2cffc1701984b95adb921e81";
    sha256 = "09hvmfzqy2jckpsml0z1gkcnar8sigmgs1q66k718fph2d3g54sa";
  };

  buildPhase = "make CXX=$CXX";
  installPhase = ''
    mkdir -p $out/bin
    cp ps3netsrv++ $out/bin
  '';

  meta = {
    description = "C++ implementation of the ps3netsrv server";
    homepage = "https://github.com/dirkvdb/ps3netsrv--";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with stdenv.lib.maintainers; [ makefu ];
  };
}