doomseeker: add qt wrapper, cleanup (#79794)

This avoids using NIX_CFLAGS_COMPILE by switching to hardeningDisable.
The hack is also only needed for darwin sources and is not specific to
clang.

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
This commit is contained in:
Benjamin Hipple 2020-02-17 04:50:44 -05:00 committed by GitHub
parent cfc21ad059
commit 5ef4af7afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
{ stdenv, cmake, fetchFromBitbucket, pkgconfig, qtbase, qttools, qtmultimedia, zlib, bzip2, xxd }: { stdenv, mkDerivation, cmake, fetchFromBitbucket, pkgconfig, qtbase, qttools, qtmultimedia, zlib, bzip2, xxd }:
stdenv.mkDerivation { mkDerivation {
pname = "doomseeker"; pname = "doomseeker";
version = "2018-03-05"; version = "2018-03-05";
@ -13,13 +13,10 @@ stdenv.mkDerivation {
patches = [ ./fix_paths.patch ./qt_build_fix.patch ]; patches = [ ./fix_paths.patch ./qt_build_fix.patch ];
nativeBuildInputs = [ cmake qttools pkgconfig xxd ];
buildInputs = [ qtbase qtmultimedia zlib bzip2 ]; buildInputs = [ qtbase qtmultimedia zlib bzip2 ];
nativeBuildInputs = [ cmake qttools pkgconfig xxd ]; hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://doomseeker.drdteam.org/; homepage = http://doomseeker.drdteam.org/;