mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 22:54:17 +00:00
cmtk: enable some compile options
- use system zlib - enabled bzip2 - enabled fftw - enabled openmp for clang - still disabled Grand Central Dispatch for linux because of build failure - still disabled CUDA because of build failure - still disabled mxml because of build failure - still disabled lzma because of lack of lzmadec.h - still disabled dcmtk because of build failure
This commit is contained in:
parent
6bf04fc9c9
commit
7014b723d9
@ -1,4 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, cmake }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, bzip2
|
||||
, cmake
|
||||
, fetchurl
|
||||
, fftw
|
||||
, llvmPackages
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cmtk";
|
||||
@ -12,6 +20,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [
|
||||
bzip2
|
||||
fftw
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
llvmPackages.openmp
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
(lib.optionalString stdenv.cc.isGNU "-std=c++11")
|
||||
(lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing")
|
||||
|
Loading…
Reference in New Issue
Block a user