mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
openxray: make it work again after #72199
This commit is contained in:
parent
b9d458d91c
commit
c67d3f1a87
@ -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"}" ];
|
||||
|
Loading…
Reference in New Issue
Block a user