From 36cfa05172e824cf19e82f3ba747f48ee9b84f64 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 24 Jun 2016 12:27:42 +0200 Subject: m 5 ps3netsrv: init --- makefu/5pkgs/default.nix | 1 + makefu/5pkgs/ps3netsrv/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 makefu/5pkgs/ps3netsrv/default.nix (limited to 'makefu') diff --git a/makefu/5pkgs/default.nix b/makefu/5pkgs/default.nix index bb6290af2..142dcd66e 100644 --- a/makefu/5pkgs/default.nix +++ b/makefu/5pkgs/default.nix @@ -16,5 +16,6 @@ in skytraq-logger = callPackage ./skytraq-logger {}; taskserver = callPackage ./taskserver {}; bintray-upload = callPackage ./bintray-upload {}; + ps3netsrv = callPackage ./ps3netsrv/ {}; }; } diff --git a/makefu/5pkgs/ps3netsrv/default.nix b/makefu/5pkgs/ps3netsrv/default.nix new file mode 100644 index 000000000..904185934 --- /dev/null +++ b/makefu/5pkgs/ps3netsrv/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchgit, clang, makeWrapper, gnugrep }: + +stdenv.mkDerivation rec { + name = "ps3netsrv-${version}"; + version = "1.1.0"; + + enableParallelBuilding = true; + + src = fetchgit { + url = "https://github.com/dirkvdb/ps3netsrv--"; + fetchSubmodules = true; + rev = "e54a66cbf142b86e2cffc1701984b95adb921e81"; # latest @ 2016-05-24 + sha256 = "0l7bp18cs3xr2qgsmcf18diccski49mj9whngxm9isi8wd4r9inj"; + }; + + nativeBuildInputs = [ gnugrep ]; + buildPhase = "make CXX=g++"; + 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.linux; + maintainers = with stdenv.lib.maintainers; [ makefu ]; + }; +} -- cgit v1.2.3