mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
ngt: use stdenv.hostPlatform.avxSupport, cleanup
This commit is contained in:
parent
174267e601
commit
9932103ead
@ -1,8 +1,13 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, llvmPackages, enableAVX ? false }:
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, llvmPackages
|
||||
, enableAVX ? stdenv.hostPlatform.avxSupport
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "NGT";
|
||||
version = "v1.12.3-alpha";
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yahoojapan";
|
||||
@ -11,11 +16,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-nu0MJNpaenOB4+evoSVLKmPIuZXVj1Rm9x53+TfhezY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ llvmPackages.openmp ];
|
||||
NIX_ENFORCE_NO_NATIVE=! enableAVX;
|
||||
__AVX2__ = if enableAVX then 1 else 0;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
NIX_ENFORCE_NO_NATIVE = ! enableAVX;
|
||||
__AVX2__ = if enableAVX then 1 else 0;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/yahoojapan/NGT";
|
||||
|
@ -23450,7 +23450,7 @@ in
|
||||
|
||||
nedit = callPackage ../applications/editors/nedit { };
|
||||
|
||||
ngt = callPackage ../development/libraries/ngt { enableAVX = false; };
|
||||
ngt = callPackage ../development/libraries/ngt { };
|
||||
|
||||
nheko = libsForQt5.callPackage ../applications/networking/instant-messengers/nheko { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user