mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
Merge master into staging-next
This commit is contained in:
commit
4f78094c50
@ -24,7 +24,7 @@
|
||||
assert enableCuda -> singlePrec;
|
||||
|
||||
let
|
||||
inherit (cudaPackages.cudaFlags) cudaCapabilities dropDot;
|
||||
inherit (cudaPackages.flags) cmakeCudaArchitecturesString;
|
||||
|
||||
# Select reasonable defaults for all major platforms
|
||||
# The possible values are defined in CMakeLists.txt:
|
||||
@ -111,10 +111,10 @@ in stdenv.mkDerivation rec {
|
||||
]
|
||||
) ++ lib.optionals enableCuda [
|
||||
"-DGMX_GPU=CUDA"
|
||||
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" (builtins.concatStringsSep ";" (map dropDot cudaCapabilities)))
|
||||
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cmakeCudaArchitecturesString)
|
||||
|
||||
# Gromacs seems to ignore and override the normal variables, so we add this ad hoc:
|
||||
(lib.cmakeFeature "GMX_CUDA_TARGET_COMPUTE" (builtins.concatStringsSep ";" (map dropDot cudaCapabilities)))
|
||||
(lib.cmakeFeature "GMX_CUDA_TARGET_COMPUTE" cmakeCudaArchitecturesString)
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -122,12 +122,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
(cmakeBool "LLAMA_VULKAN" vulkanSupport)
|
||||
]
|
||||
++ optionals cudaSupport [
|
||||
(
|
||||
with cudaPackages.flags;
|
||||
cmakeFeature "CMAKE_CUDA_ARCHITECTURES" (
|
||||
builtins.concatStringsSep ";" (map dropDot cudaCapabilities)
|
||||
)
|
||||
)
|
||||
(cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaPackages.flags.cmakeCudaArchitecturesString)
|
||||
]
|
||||
++ optionals rocmSupport [
|
||||
(cmakeFeature "CMAKE_C_COMPILER" "hipcc")
|
||||
|
@ -14,10 +14,6 @@
|
||||
|
||||
let
|
||||
effectiveStdenv = if cudaSupport then cudaPackages.backendStdenv else inputs.stdenv;
|
||||
cudaCapabilities = cudaPackages.cudaFlags.cudaCapabilities;
|
||||
# E.g. [ "80" "86" "90" ]
|
||||
cudaArchitectures = (builtins.map cudaPackages.cudaFlags.dropDot cudaCapabilities);
|
||||
cudaArchitecturesString = lib.strings.concatStringsSep ";" cudaArchitectures;
|
||||
in
|
||||
effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fastdeploy-ppocr";
|
||||
@ -65,7 +61,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
]
|
||||
++ lib.optionals cudaSupport [
|
||||
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaArchitecturesString)
|
||||
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaPackages.flags.cmakeCudaArchitecturesString)
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -1,41 +1,32 @@
|
||||
{ lib, fetchFromGitHub, buildGoPackage, libtool }:
|
||||
|
||||
buildGoPackage rec {
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "notary";
|
||||
version = "0.6.1";
|
||||
gitcommit = "d6e1431f";
|
||||
version = "0.6.1-unstable-2024-04-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "theupdateframework";
|
||||
owner = "notaryproject";
|
||||
repo = "notary";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ak9dk6vjny5069hp3w36dbjawcnaq82l3i2qvf7mn7zfglbsnf9";
|
||||
rev = "9d2b3b35929392c9945d976b8bdecbe2f53a299e";
|
||||
sha256 = "sha256-u19BfTJwRWholK0b3BcgSmcMM9AR7OeXo64AOi87r0A=";
|
||||
};
|
||||
|
||||
patches = [ ./no-git-usage.patch ];
|
||||
vendorHash = null;
|
||||
|
||||
buildInputs = [ libtool ];
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
cd go/src/github.com/theupdateframework/notary
|
||||
SKIPENVCHECK=1 make client GITCOMMIT=${gitcommit}
|
||||
runHook postBuild
|
||||
'';
|
||||
tags = [
|
||||
"pkcs11"
|
||||
];
|
||||
|
||||
goPackagePath = "github.com/theupdateframework/notary";
|
||||
ldflags = [
|
||||
"-X github.com/theupdateframework/notary/version.NotaryVersion=${version}"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D bin/notary $out/bin/notary
|
||||
runHook postInstall
|
||||
'';
|
||||
# Tests try to use network.
|
||||
doCheck = false;
|
||||
|
||||
#doCheck = true; # broken by tzdata: 2018g -> 2019a
|
||||
checkPhase = ''
|
||||
make test PKGS=github.com/theupdateframework/notary/cmd/notary
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Project that allows anyone to have trust over arbitrary collections of data";
|
||||
mainProgram = "notary";
|
||||
longDescription = ''
|
||||
@ -58,9 +49,9 @@ buildGoPackage rec {
|
||||
relying only on the publisher's key to determine the validity and
|
||||
integrity of the received content.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
license = lib.licenses.asl20;
|
||||
homepage = "https://github.com/theupdateframework/notary";
|
||||
maintainers = with maintainers; [ vdemeester ];
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ lib.maintainers.vdemeester ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -29,10 +29,7 @@ let
|
||||
stdenv = throw "Use effectiveStdenv instead";
|
||||
effectiveStdenv = if cudaSupport then cudaPackages.backendStdenv else inputs.stdenv;
|
||||
|
||||
cudaCapabilities = cudaPackages.cudaFlags.cudaCapabilities;
|
||||
# E.g. [ "80" "86" "90" ]
|
||||
cudaArchitectures = (builtins.map cudaPackages.cudaFlags.dropDot cudaCapabilities);
|
||||
cudaArchitecturesString = lib.strings.concatStringsSep ";" cudaArchitectures;
|
||||
cudaArchitecturesString = cudaPackages.flags.cmakeCudaArchitecturesString;
|
||||
|
||||
howard-hinnant-date = fetchFromGitHub {
|
||||
owner = "HowardHinnant";
|
||||
|
@ -29,8 +29,7 @@ let
|
||||
pname = "faiss";
|
||||
version = "1.7.4";
|
||||
|
||||
inherit (cudaPackages) cudaFlags backendStdenv;
|
||||
inherit (cudaFlags) cudaCapabilities dropDot;
|
||||
inherit (cudaPackages) flags backendStdenv;
|
||||
|
||||
stdenv = if cudaSupport then backendStdenv else inputs.stdenv;
|
||||
|
||||
@ -93,7 +92,7 @@ stdenv.mkDerivation {
|
||||
"-DFAISS_ENABLE_PYTHON=${if pythonSupport then "ON" else "OFF"}"
|
||||
"-DFAISS_OPT_LEVEL=${optLevel}"
|
||||
] ++ lib.optionals cudaSupport [
|
||||
"-DCMAKE_CUDA_ARCHITECTURES=${builtins.concatStringsSep ";" (map dropDot cudaCapabilities)}"
|
||||
"-DCMAKE_CUDA_ARCHITECTURES=${flags.cmakeCudaArchitecturesString}"
|
||||
"-DCUDAToolkit_INCLUDE_DIR=${cudaJoined}/include"
|
||||
];
|
||||
|
||||
|
@ -41,8 +41,7 @@ let
|
||||
then cudaPackages_11
|
||||
else cudaPackages;
|
||||
|
||||
inherit (effectiveCudaPackages) cudaAtLeast cudaFlags cudaOlder;
|
||||
inherit (cudaFlags) cudaCapabilities;
|
||||
inherit (effectiveCudaPackages) cudaAtLeast flags cudaOlder;
|
||||
|
||||
# move to newer ROCm version once supported
|
||||
rocmPackages = rocmPackages_5;
|
||||
@ -52,7 +51,7 @@ let
|
||||
# lists.subtractLists a b = b - a
|
||||
|
||||
# For ROCm
|
||||
# NOTE: The hip.gpuTargets are prefixed with "gfx" instead of "sm" like cudaFlags.realArches.
|
||||
# NOTE: The hip.gpuTargets are prefixed with "gfx" instead of "sm" like flags.realArches.
|
||||
# For some reason, Magma's CMakeLists.txt file does not handle the "gfx" prefix, so we must
|
||||
# remove it.
|
||||
rocmArches = lists.map (x: strings.removePrefix "gfx" x) rocmPackages.clr.gpuTargets;
|
||||
@ -83,12 +82,11 @@ let
|
||||
throw "No GPU targets specified"
|
||||
);
|
||||
|
||||
# E.g. [ "80" "86" "90" ]
|
||||
cudaArchitectures = (builtins.map cudaFlags.dropDot cudaCapabilities);
|
||||
|
||||
cudaArchitecturesString = strings.concatStringsSep ";" cudaArchitectures;
|
||||
cudaArchitecturesString = flags.cmakeCudaArchitecturesString;
|
||||
minArch =
|
||||
let
|
||||
# E.g. [ "80" "86" "90" ]
|
||||
cudaArchitectures = (builtins.map flags.dropDot flags.cudaCapabilities);
|
||||
minArch' = builtins.head (builtins.sort strings.versionOlder cudaArchitectures);
|
||||
in
|
||||
# "75" -> "750" Cf. https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-273
|
||||
|
@ -11,7 +11,7 @@
|
||||
which,
|
||||
}: let
|
||||
inherit (lib) lists strings;
|
||||
inherit (cudaPackages) backendStdenv cudaFlags;
|
||||
inherit (cudaPackages) backendStdenv flags;
|
||||
|
||||
cuda-common-redist = with cudaPackages; [
|
||||
cuda_cudart.dev # cuda_runtime.h
|
||||
@ -89,9 +89,7 @@ in
|
||||
doCheck = false;
|
||||
|
||||
preConfigure = ''
|
||||
export TCNN_CUDA_ARCHITECTURES="${
|
||||
strings.concatStringsSep ";" (lists.map cudaFlags.dropDot cudaFlags.cudaCapabilities)
|
||||
}"
|
||||
export TCNN_CUDA_ARCHITECTURES="${flags.cmakeCudaArchitecturesString}"
|
||||
export CUDA_HOME="${cuda-native-redist}"
|
||||
export LIBRARY_PATH="${cuda-native-redist}/lib/stubs:$LIBRARY_PATH"
|
||||
export CC="${backendStdenv.cc}/bin/cc"
|
||||
|
22
pkgs/development/tools/dazel/default.nix
Normal file
22
pkgs/development/tools/dazel/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
}:
|
||||
buildPythonApplication rec {
|
||||
version = "0.0.42";
|
||||
pname = "dazel";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-JE7+GS7DpuFoC2LK3dvYvjtOdzRxFMHzgZRfvrGBDtQ=";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/nadirizr/dazel";
|
||||
description = "Run Google's bazel inside a docker container via a seamless proxy.";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
malt3
|
||||
];
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index ab794165..0cbd047f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -5,8 +5,8 @@ PREFIX?=$(shell pwd)
|
||||
# Add to compile time flags
|
||||
NOTARY_PKG := github.com/theupdateframework/notary
|
||||
NOTARY_VERSION := $(shell cat NOTARY_VERSION)
|
||||
-GITCOMMIT := $(shell git rev-parse --short HEAD)
|
||||
-GITUNTRACKEDCHANGES := $(shell git status --porcelain --untracked-files=no)
|
||||
+GITCOMMIT ?= $(shell git rev-parse --short HEAD)
|
||||
+GITUNTRACKEDCHANGES :=
|
||||
ifneq ($(GITUNTRACKEDCHANGES),)
|
||||
GITCOMMIT := $(GITCOMMIT)-dirty
|
||||
endif
|
@ -3613,6 +3613,8 @@ with pkgs;
|
||||
|
||||
cyclonedx-python = callPackage ../tools/misc/cyclonedx-python { };
|
||||
|
||||
dazel = python3Packages.callPackage ../development/tools/dazel { };
|
||||
|
||||
dcap = callPackage ../tools/networking/dcap { };
|
||||
|
||||
deltachat-cursed = callPackage ../applications/networking/instant-messengers/deltachat-cursed { };
|
||||
@ -11009,8 +11011,6 @@ with pkgs;
|
||||
|
||||
noisetorch = callPackage ../applications/audio/noisetorch { };
|
||||
|
||||
notary = callPackage ../tools/security/notary { };
|
||||
|
||||
notation = callPackage ../tools/security/notation { };
|
||||
|
||||
notify-osd = callPackage ../applications/misc/notify-osd { };
|
||||
|
Loading…
Reference in New Issue
Block a user