diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-25 21:51:57 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-25 21:51:57 +0100 |
commit | 06a054e6eb9d5ad395aa89e598205aa2c56afb61 (patch) | |
tree | 91254460e5216addfcfa8aa457d3d480ed448b47 /pkgs/games | |
parent | 2a2d3de78c950d46922f9aa13c3ff531cb142310 (diff) | |
parent | 646b279c55780fa8cfe79b2a3b1e3ab53b445be7 (diff) | |
download | nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar.gz nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar.bz2 nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar.lz nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar.xz nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.tar.zst nixpkgs-06a054e6eb9d5ad395aa89e598205aa2c56afb61.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/chessx/default.nix | 25 | ||||
-rw-r--r-- | pkgs/games/openxray/default.nix | 32 |
2 files changed, 46 insertions, 11 deletions
diff --git a/pkgs/games/chessx/default.nix b/pkgs/games/chessx/default.nix index 3b460daefd1..f0b04489eda 100644 --- a/pkgs/games/chessx/default.nix +++ b/pkgs/games/chessx/default.nix @@ -1,8 +1,16 @@ -{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, qmake, fetchurl, makeWrapper -, lib +{ mkDerivation +, stdenv +, pkgconfig +, zlib +, qtbase +, qtsvg +, qttools +, qtmultimedia +, qmake +, fetchurl }: -stdenv.mkDerivation rec { +mkDerivation rec { pname = "chessx"; version = "1.5.0"; @@ -11,16 +19,19 @@ stdenv.mkDerivation rec { sha256 = "09rqyra28w3z9ldw8sx07k5ap3sjlli848p737maj7c240rasc6i"; }; + nativeBuildInputs = [ + pkgconfig + qmake + ]; + buildInputs = [ qtbase + qtmultimedia qtsvg qttools - qtmultimedia zlib ]; - nativeBuildInputs = [ pkgconfig qmake makeWrapper ]; - # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm' enableParallelBuilding = false; @@ -39,7 +50,7 @@ stdenv.mkDerivation rec { homepage = http://chessx.sourceforge.net/; description = "ChessX allows you to browse and analyse chess games"; license = licenses.gpl2; - maintainers = [maintainers.luispedro]; + maintainers = [ maintainers.luispedro ]; platforms = platforms.linux; }; } diff --git a/pkgs/games/openxray/default.nix b/pkgs/games/openxray/default.nix index 9960d94a247..c115833d848 100644 --- a/pkgs/games/openxray/default.nix +++ b/pkgs/games/openxray/default.nix @@ -1,9 +1,8 @@ { stdenv, fetchFromGitHub, cmake, glew, freeimage, liblockfile -, openal, cryptopp, libtheora, SDL2, lzo, libjpeg, libogg, tbb +, openal, libtheora, SDL2, lzo, libjpeg, libogg, tbb , pcre, makeWrapper }: -stdenv.mkDerivation rec { - pname = "OpenXRay"; +let version = "558"; src = fetchFromGitHub { @@ -14,6 +13,31 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; + # https://github.com/OpenXRay/xray-16/issues/518 + cryptopp = stdenv.mkDerivation { + pname = "cryptopp"; + version = "5.6.5"; + + inherit src; + + postUnpack = "sourceRoot+=/Externals/cryptopp"; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + enableParallelBuilding = true; + + doCheck = true; + + meta = with stdenv.lib; { + description = "Crypto++, a free C++ class library of cryptographic schemes"; + homepage = "https://cryptopp.com/"; + license = with licenses; [ boost publicDomain ]; + platforms = platforms.all; + }; + }; +in stdenv.mkDerivation rec { + pname = "OpenXRay"; + inherit version src; + hardeningDisable = [ "format" ]; cmakeFlags = [ "-DCMAKE_INCLUDE_PATH=${cryptopp}/include/cryptopp" ]; installFlags = [ "DESTDIR=${placeholder "out"}" ]; @@ -47,6 +71,6 @@ stdenv.mkDerivation rec { url = https://github.com/OpenXRay/xray-16/blob/xd_dev/License.txt; }; maintainers = [ maintainers.gnidorah ]; - platforms = ["x86_64-linux" "i686-linux" ]; + platforms = [ "x86_64-linux" "i686-linux" ]; }; } |