treewide: set meta.license on hooks

This commit is contained in:
Sigmanificient
2026-05-16 02:57:04 +02:00
parent 70df9fb258
commit 0bbc8dffae
90 changed files with 328 additions and 55 deletions
@@ -26,4 +26,6 @@ makeSetupHook {
passthru = {
inherit enableHook;
};
meta.license = lib.licenses.mit;
} ./auto-add-cuda-compat-runpath.sh
@@ -1,4 +1,10 @@
# Internal hook, used by cudatoolkit and cuda redist packages
# to accommodate automatic CUDAToolkit_ROOT construction
{ makeSetupHook }:
makeSetupHook { name = "mark-for-cudatoolkit-root-hook"; } ./mark-for-cudatoolkit-root-hook.sh
{
lib,
makeSetupHook,
}:
makeSetupHook {
name = "mark-for-cudatoolkit-root-hook";
meta.license = lib.licenses.mit;
} ./mark-for-cudatoolkit-root-hook.sh
@@ -1,4 +1,5 @@
{
lib,
addDriverRunpath,
arrayUtilities,
autoFixElfFiles,
@@ -14,4 +15,6 @@ makeSetupHook {
substitutions = {
driverLinkLib = addDriverRunpath.driverLink + "/lib";
};
meta.license = lib.licenses.mit;
} ./removeStubsFromRunpathHook.bash
@@ -1,5 +1,9 @@
# Currently propagated by cuda_nvcc or cudatoolkit, rather than used directly
{ makeSetupHook, backendStdenv }:
{
lib,
makeSetupHook,
backendStdenv,
}:
makeSetupHook {
name = "setup-cuda-hook";
@@ -8,4 +12,6 @@ makeSetupHook {
# Required in addition to ccRoot as otherwise bin/gcc is looked up
# when building CMakeCUDACompilerId.cu
substitutions.ccFullPath = "${backendStdenv.cc}/bin/${backendStdenv.cc.targetPrefix}c++";
meta.license = lib.licenses.mit;
} ./setup-cuda-hook.sh