From 406cb1a2c1888d0769138ce306de6b116f3deb0e Mon Sep 17 00:00:00 2001 From: CrazedProgrammer Date: Sat, 29 Dec 2018 15:26:08 +0100 Subject: [PATCH 1/2] curlpp: init at 0.8.1 --- pkgs/development/libraries/curlpp/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/curlpp/default.nix diff --git a/pkgs/development/libraries/curlpp/default.nix b/pkgs/development/libraries/curlpp/default.nix new file mode 100644 index 000000000000..58f88e6d8ebf --- /dev/null +++ b/pkgs/development/libraries/curlpp/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, cmake, curl }: + +stdenv.mkDerivation rec { + name = "curlpp-${version}"; + version = "0.8.1"; + src = fetchFromGitHub { + owner = "jpbarrette"; + repo = "curlpp"; + rev = "v${version}"; + sha256 = "1b0ylnnrhdax4kwjq64r1fk0i24n5ss6zfzf4hxwgslny01xiwrk"; + }; + + buildInputs = [ curl ]; + nativeBuildInputs = [ cmake ]; + enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = https://www.curlpp.org/; + description = "C++ wrapper around libcURL"; + license = licenses.mit; + maintainers = with maintainers; [ CrazedProgrammer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 53bb883b55ac..86a72afdfe38 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9535,6 +9535,8 @@ in curlcpp = callPackage ../development/libraries/curlcpp { }; + curlpp = callPackage ../development/libraries/curlpp { }; + cutee = callPackage ../development/libraries/cutee { }; cutelyst = libsForQt5.callPackage ../development/libraries/cutelyst { }; From 46d6e7338d2405e0dcf6aee4abbe05d96778133e Mon Sep 17 00:00:00 2001 From: CrazedProgrammer Date: Sat, 29 Dec 2018 15:27:57 +0100 Subject: [PATCH 2/2] riko4: init at 0.1.0 --- pkgs/games/riko4/default.nix | 68 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 70 insertions(+) create mode 100644 pkgs/games/riko4/default.nix diff --git a/pkgs/games/riko4/default.nix b/pkgs/games/riko4/default.nix new file mode 100644 index 000000000000..7cbfacd0b409 --- /dev/null +++ b/pkgs/games/riko4/default.nix @@ -0,0 +1,68 @@ +{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU, luajit, curl, curlpp }: + +let + # Newer versions of sdl-gpu don't work with Riko4 (corrupted graphics), + # and this library does not have a proper release version, so let the + # derivation for this stay next to the Riko4 derivation for now. + sdl-gpu = stdenv.mkDerivation rec { + name = "sdl-gpu-${version}"; + version = "2018-11-01"; + src = fetchFromGitHub { + owner = "grimfang4"; + repo = "sdl-gpu"; + rev = "a4ff1ab02410f154b004c29ec46e07b22890fa1f"; + sha256 = "1wdwg331s7r4dhq1l8w4dvlqf4iywskpdrscgbwrz9j0c6nqqi3v"; + }; + buildInputs = [ SDL2 libGLU ]; + nativeBuildInputs = [ cmake ]; + enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = https://github.com/grimfang4/sdl-gpu; + description = "A library for high-performance, modern 2D graphics with SDL written in C"; + license = licenses.mit; + maintainers = with maintainers; [ CrazedProgrammer ]; + }; + }; +in + +stdenv.mkDerivation rec { + name = "riko4-${version}"; + version = "0.1.0"; + src = fetchFromGitHub { + owner = "incinirate"; + repo = "Riko4"; + rev = "v${version}"; + sha256 = "008i9991sn616dji96jfwq6gszrspbx4x7cynxb1cjw66phyy5zp"; + }; + + buildInputs = [ SDL2 luajit sdl-gpu curl curlpp ]; + nativeBuildInputs = [ cmake ]; + + hardeningDisable = [ "fortify" ]; + cmakeFlags = [ "-DSDL2_gpu_INCLUDE_DIR=\"${sdl-gpu}/include\"" ]; + + # Riko4 needs the data/ and scripts/ directories to be in its PWD. + installPhase = '' + install -Dm0755 riko4 $out/bin/.riko4-unwrapped + mkdir -p $out/lib/riko4 + cp -r ../data $out/lib/riko4 + cp -r ../scripts $out/lib/riko4 + cat > $out/bin/riko4 < /dev/null + exec $out/bin/.riko4-unwrapped "\$@" + popd > /dev/null + EOF + chmod +x $out/bin/riko4 + ''; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = https://github.com/incinirate/Riko4; + description = "Fantasy console for pixel art game development"; + license = licenses.mit; + maintainers = with maintainers; [ CrazedProgrammer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86a72afdfe38..9c470a069640 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20894,6 +20894,8 @@ in }; }; + riko4 = callPackage ../games/riko4 { }; + rili = callPackage ../games/rili { }; rimshot = callPackage ../games/rimshot { love = love_0_7; };