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

View File

@@ -288,6 +288,7 @@ let
toNvimTreesitterGrammar = makeSetupHook {
name = "to-nvim-treesitter-grammar";
meta.license = lib.licenses.mit;
} ./to-nvim-treesitter-grammar.sh;
in

View File

@@ -446,6 +446,7 @@ rec {
vimBinary = "${vim}/bin/vim";
inherit rtpPath;
};
meta.license = lib.licenses.mit;
} ../hooks/vim-gen-doc-hook.sh
) { };
@@ -458,6 +459,7 @@ rec {
vimBinary = "${neovim-unwrapped}/bin/nvim";
inherit rtpPath;
};
meta.license = lib.licenses.mit;
} ../hooks/vim-command-check-hook.sh
) { };
@@ -470,6 +472,7 @@ rec {
nvimBinary = "${neovim-unwrapped}/bin/nvim";
inherit rtpPath;
};
meta.license = lib.licenses.mit;
} ../hooks/neovim-require-check-hook.sh
) { };

View File

@@ -18,6 +18,7 @@ let
substitutions = {
unzip = "${buildPackages.unzip}/bin/unzip";
};
meta.license = lib.licenses.mit;
} ./unpack-vsix-setup-hook.sh;
buildVscodeExtension = lib.extendMkDerivation {
constructDrv = stdenv.mkDerivation;

View File

@@ -78,6 +78,7 @@ let
darwinSuffixSalt = stdenv.cc.suffixSalt;
mingwGccsSuffixSalts = map (gcc: gcc.suffixSalt) mingwGccs;
};
meta.license = lib.licenses.mit;
} ./setup-hook-darwin.sh;
# Building Wine with these flags isn't supported on Darwin. Using any of them will result in an evaluation failures

View File

@@ -15,16 +15,20 @@
substitutions.python3 = lib.getExe (python3.withPackages (ps: with ps; [ pyyaml ]));
substitutions.packageGraphScript = ../../pub2nix/package-graph.py;
substitutions.workspacePackageConfigScript = ../workspace-package-config.py;
meta.license = lib.licenses.mit;
} ./dart-config-hook.sh;
dartBuildHook = makeSetupHook {
name = "dart-build-hook";
substitutions.yq = "${yq}/bin/yq";
substitutions.jq = "${jq}/bin/jq";
meta.license = lib.licenses.mit;
} ./dart-build-hook.sh;
dartInstallHook = makeSetupHook {
name = "dart-install-hook";
meta.license = lib.licenses.mit;
} ./dart-install-hook.sh;
dartFixupHook = makeSetupHook {
name = "dart-fixup-hook";
meta.license = lib.licenses.mit;
} ./dart-fixup-hook.sh;
}

View File

@@ -1,10 +1,11 @@
{ callPackage }:
{ lib, callPackage }:
{
dubSetupHook = callPackage (
{ makeSetupHook }:
makeSetupHook {
name = "dub-setup-hook";
meta.license = lib.licenses.mit;
} ./dub-setup-hook.sh
) { };
@@ -13,6 +14,7 @@
makeSetupHook {
name = "dub-build-hook";
propagatedBuildInputs = [ dub ];
meta.license = lib.licenses.mit;
} ./dub-build-hook.sh
) { };
@@ -21,6 +23,7 @@
makeSetupHook {
name = "dub-check-hook";
propagatedBuildInputs = [ dub ];
meta.license = lib.licenses.mit;
} ./dub-check-hook.sh
) { };
}

View File

@@ -1,8 +1,8 @@
{ callPackage }:
{ lib, callPackage }:
{
dub-to-nix = callPackage ./dub-to-nix { };
importDubLock = callPackage ./builddubpackage/import-dub-lock.nix { };
buildDubPackage = callPackage ./builddubpackage { };
}
// import ./builddubpackage/hooks { inherit callPackage; }
// import ./builddubpackage/hooks { inherit lib callPackage; }

View File

@@ -11,4 +11,5 @@ makeSetupHook {
shell = lib.getExe bash;
patchcil = lib.getExe patchcil;
};
meta.license = lib.licenses.mit;
} ./auto-patchcil.sh

View File

@@ -15,4 +15,5 @@ makeSetupHook {
coreutils
];
};
meta.license = lib.licenses.mit;
} ./dotnet-hook.sh

View File

@@ -31,10 +31,12 @@
nodeVersion = nodejs.version;
nodeVersionMajor = lib.versions.major nodejs.version;
};
meta.license = lib.licenses.mit;
} ./npm-config-hook.sh;
npmBuildHook = makeSetupHook {
name = "npm-build-hook";
meta.license = lib.licenses.mit;
} ./npm-build-hook.sh;
npmInstallHook = makeSetupHook {
@@ -50,5 +52,6 @@
substitutions = {
jq = "${jq}/bin/jq";
};
meta.license = lib.licenses.mit;
} ./npm-install-hook.sh;
}

View File

@@ -249,5 +249,6 @@ in
npmArch = stdenvNoCC.targetPlatform.node.arch;
npmPlatform = stdenvNoCC.targetPlatform.node.platform;
};
meta.license = lib.licenses.mit;
} ./pnpm-config-hook.sh;
}

View File

@@ -180,6 +180,7 @@ in
};
meta = {
description = "Install nodejs dependencies from an offline yarn cache produced by fetchYarnDeps";
license = lib.licenses.mit;
};
} ./yarn-config-hook.sh;
@@ -187,6 +188,7 @@ in
name = "yarn-build-hook";
meta = {
description = "Run yarn build in buildPhase";
license = lib.licenses.mit;
};
} ./yarn-build-hook.sh;
@@ -202,6 +204,7 @@ in
};
meta = {
description = "Prune yarn dependencies and install files for packages using Yarn 1";
license = lib.licenses.mit;
};
} ./yarn-install-hook.sh;
}

View File

@@ -14,6 +14,7 @@
canonicalizeSymlinksScript = ./canonicalize-symlinks.js;
storePrefix = builtins.storeDir;
};
meta.license = lib.licenses.mit;
} ./npm-config-hook.sh;
linkNodeModulesHook = makeSetupHook {
@@ -23,5 +24,6 @@
script = ./link-node-modules.js;
storePrefix = builtins.storeDir;
};
meta.license = lib.licenses.mit;
} ./link-node-modules-hook.sh;
}

View File

@@ -26,6 +26,7 @@ in
substitutions = {
phpScriptUtils = lib.getExe php-script-utils;
};
meta.license = lib.licenses.mit;
} ./composer-repository-hook.sh;
composerInstallHook = makeSetupHook {
@@ -42,6 +43,7 @@ in
cmp = "${lib.getBin buildPackages.diffutils}/bin/cmp";
phpScriptUtils = lib.getExe php-script-utils;
};
meta.license = lib.licenses.mit;
} ./composer-install-hook.sh;
composerWithPluginVendorHook = makeSetupHook {
@@ -58,5 +60,6 @@ in
cmp = "${lib.getBin buildPackages.diffutils}/bin/cmp";
phpScriptUtils = lib.getExe php-script-utils;
};
meta.license = lib.licenses.mit;
} ./composer-with-plugin-vendor-hook.sh;
}

View File

@@ -26,6 +26,7 @@ in
substitutions = {
phpScriptUtils = lib.getExe php-script-utils;
};
meta.license = lib.licenses.mit;
} ./composer-vendor-hook.sh;
composerInstallHook = makeSetupHook {
@@ -42,5 +43,6 @@ in
cmp = "${lib.getBin buildPackages.diffutils}/bin/cmp";
phpScriptUtils = lib.getExe php-script-utils;
};
meta.license = lib.licenses.mit;
} ./composer-install-hook.sh;
}

View File

@@ -107,6 +107,7 @@ stdenv.mkDerivation {
wrapperName
;
};
meta.license = lib.licenses.mit;
} ../setup-hooks/role.bash;
setupHook = makeSetupHook {
name = "pkgs-config-setup-hook";
@@ -116,6 +117,7 @@ stdenv.mkDerivation {
baseBinName
;
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh;
in
[

View File

@@ -30,6 +30,7 @@
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) {
testCross = pkgsCross.riscv64.tests.rust-hooks.cargoBuildHook;
};
meta.license = lib.licenses.mit;
} ./cargo-build-hook.sh;
cargoCheckHook = makeSetupHook {
@@ -44,6 +45,7 @@
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) {
testCross = pkgsCross.riscv64.tests.rust-hooks.cargoCheckHook;
};
meta.license = lib.licenses.mit;
} ./cargo-check-hook.sh;
cargoInstallHook = makeSetupHook {
@@ -57,6 +59,7 @@
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) {
testCross = pkgsCross.riscv64.tests.rust-hooks.cargoInstallHook;
};
meta.license = lib.licenses.mit;
} ./cargo-install-hook.sh;
cargoNextestHook = makeSetupHook {
@@ -71,6 +74,7 @@
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) {
testCross = pkgsCross.riscv64.tests.rust-hooks.cargoNextestHook;
};
meta.license = lib.licenses.mit;
} ./cargo-nextest-hook.sh;
cargoSetupHook = makeSetupHook {
@@ -110,6 +114,7 @@
// lib.optionalAttrs (stdenv.hostPlatform.isLinux) {
testCross = pkgsCross.riscv64.tests.rust-hooks.cargoSetupHook;
};
meta.license = lib.licenses.mit;
} ./cargo-setup-hook.sh;
maturinBuildHook = makeSetupHook {
@@ -124,6 +129,7 @@
inherit (rust.envVars) setEnv;
};
meta.license = lib.licenses.mit;
} ./maturin-build-hook.sh;
bindgenHook = makeSetupHook {
@@ -132,5 +138,6 @@
libclang = (lib.getLib clang.cc);
inherit clang;
};
meta.license = lib.licenses.mit;
} ./rust-bindgen-hook.sh;
}

View File

@@ -1,4 +1,5 @@
{
lib,
callPackages,
isDeclaredArray,
makeSetupHook,
@@ -11,5 +12,8 @@ makeSetupHook {
patchelf
];
passthru.tests = callPackages ./tests.nix { };
meta.description = "Appends runpath entries of a file to an array";
meta = {
description = "Appends runpath entries of a file to an array";
license = lib.licenses.mit;
};
} ./getRunpathEntries.bash

View File

@@ -1,4 +1,5 @@
{
lib,
callPackages,
isDeclaredArray,
isDeclaredMap,
@@ -13,5 +14,8 @@ makeSetupHook {
sortArray
];
passthru.tests = callPackages ./tests.nix { };
meta.description = "Gets the sorted indices of an associative array";
meta = {
description = "Gets the sorted indices of an associative array";
license = lib.licenses.mit;
};
} ./getSortedMapKeys.bash

View File

@@ -1,9 +1,13 @@
{
lib,
callPackages,
makeSetupHook,
}:
makeSetupHook {
name = "isDeclaredArray";
passthru.tests = callPackages ./tests.nix { };
meta.description = "Tests if an array is declared";
meta = {
description = "Tests if an array is declared";
license = lib.licenses.mit;
};
} ./isDeclaredArray.bash

View File

@@ -1,9 +1,13 @@
{
lib,
callPackages,
makeSetupHook,
}:
makeSetupHook {
name = "isDeclaredMap";
passthru.tests = callPackages ./tests.nix { };
meta.description = "Tests if an associative array is declared";
meta = {
description = "Tests if an associative array is declared";
license = lib.licenses.mit;
};
} ./isDeclaredMap.bash

View File

@@ -1,4 +1,5 @@
{
lib,
callPackages,
isDeclaredArray,
makeSetupHook,
@@ -7,5 +8,8 @@ makeSetupHook {
name = "sortArray";
propagatedBuildInputs = [ isDeclaredArray ];
passthru.tests = callPackages ./tests.nix { };
meta.description = "Sorts an array";
meta = {
description = "Sorts an array";
license = lib.licenses.mit;
};
} ./sortArray.bash

View File

@@ -1,2 +1,8 @@
{ makeSetupHook }:
makeSetupHook { name = "flatten-include-hack-hook"; } ./flatten-include-hack-hook.sh
{
lib,
makeSetupHook,
}:
makeSetupHook {
name = "flatten-include-hack-hook";
meta.license = lib.licenses.mit;
} ./flatten-include-hack-hook.sh

View File

@@ -12,6 +12,7 @@ in
name = "patch-rc-path-bash";
meta = {
description = "Setup-hook to inject source-time PATH prefix to a Bash/Ksh/Zsh script";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
passthru.tests = {
@@ -25,6 +26,7 @@ in
};
meta = {
description = "Setup-hook to inject source-time PATH prefix to a Csh script";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
passthru.tests = {
@@ -35,6 +37,7 @@ in
name = "patch-rc-path-fish";
meta = {
description = "Setup-hook to inject source-time PATH prefix to a Fish script";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
passthru.tests = {
@@ -48,6 +51,7 @@ in
};
meta = {
description = "Setup-hook to inject source-time PATH prefix to a POSIX shell script";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
passthru.tests = {

View File

@@ -51,6 +51,7 @@ makeSetupHook {
# D-Bus service enabled globally (e.g. through a NixOS module).
dconf.lib
];
meta.license = lib.licenses.mit;
passthru = {
tests =
let

View File

@@ -11,4 +11,6 @@ makeSetupHook {
# hardware drivers installed by NixOS
driverLink = "/run/opengl-driver" + lib.optionalString stdenv.hostPlatform.isi686 "-32";
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -1,9 +1,14 @@
{ makeSetupHook, sdkVersion }:
{
lib,
makeSetupHook,
sdkVersion,
}:
self: super: {
passthru = super.passthru or { } // {
privateFrameworksHook = makeSetupHook {
name = "apple-sdk-private-frameworks-hook";
meta.license = lib.licenses.mit;
} ../setup-hooks/add-private-frameworks.sh;
};
}

View File

@@ -1,4 +1,5 @@
{
lib,
addDriverRunpath,
autoFixElfFiles,
makeSetupHook,
@@ -10,4 +11,5 @@ makeSetupHook {
addDriverRunpath
autoFixElfFiles
];
meta.license = lib.licenses.mit;
} ./auto-add-driver-runpath-hook.sh

View File

@@ -1,5 +1,9 @@
{ makeSetupHook }:
{
lib,
makeSetupHook,
}:
makeSetupHook {
name = "auto-fix-elf-files";
meta.license = lib.licenses.mit;
} ./auto-fix-elf-files.sh

View File

@@ -22,7 +22,10 @@ in
makeSetupHook {
name = "breakpoint-hook";
meta.broken = !stdenv.buildPlatform.isLinux;
meta = {
broken = !stdenv.buildPlatform.isLinux;
license = lib.licenses.mit;
};
substitutions = {
attach = "${attach}/bin/attach";
# The default interactive shell in case $debugShell is not set in the derivation.

View File

@@ -1,6 +1,13 @@
{ stdenv, makeSetupHook }:
{
lib,
stdenv,
makeSetupHook,
}:
makeSetupHook {
name = "breakpoint-hook";
meta.broken = !stdenv.buildPlatform.isLinux;
meta = {
broken = !stdenv.buildPlatform.isLinux;
license = lib.licenses.mit;
};
} ./breakpoint-hook.sh

View File

@@ -77,5 +77,6 @@ makeSetupHook {
inherit (cargo-tauri.meta) maintainers broken;
# Platforms that Tauri supports bundles for
platforms = lib.platforms.darwin ++ lib.platforms.linux;
license = lib.licenses.mit;
};
} ./hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
cmake,
}:
@@ -6,4 +7,5 @@
makeSetupHook {
name = "ctestCheckHook";
propagatedBuildInputs = [ cmake ];
meta.license = lib.licenses.mit;
} ./ctest-check-hook.sh

View File

@@ -46,6 +46,7 @@ let
substitutions = {
jq = lib.getExe buildPackages.jq;
};
meta.license = lib.licenses.mit;
} ./gclient-unpack-hook.sh
) { };

View File

@@ -11,4 +11,5 @@ makeSetupHook {
gitMinimal = lib.getExe gitMinimal;
};
meta.license = lib.licenses.mit;
} ./gitSetupHook.sh

View File

@@ -52,5 +52,6 @@ makeSetupHook {
meta = {
description = "Setup hook for the Hare compiler";
inherit (hare.meta) badPlatforms platforms;
license = lib.licenses.mit;
};
} ./setup-hook.sh

View File

@@ -13,4 +13,5 @@ makeSetupHook {
directory = ./tests;
};
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -6,5 +6,8 @@
makeSetupHook {
name = "projucer-hook";
propagatedBuildInputs = [ (callPackage ./package.nix { }) ];
meta.platforms = lib.platforms.linux;
meta = {
platforms = lib.platforms.linux;
license = lib.licenses.mit;
};
} ./projucer-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
julec,
makeSetupHook,
}:
@@ -10,5 +11,6 @@ makeSetupHook {
meta = {
inherit (julec.meta) maintainers;
license = lib.licenses.mit;
};
} ./hook.sh

View File

@@ -91,5 +91,6 @@ makeSetupHook {
meta = {
description = "Setup hook for configuring and wrapping applications based on libcosmic";
teams = [ lib.teams.cosmic ];
license = lib.licenses.mit;
};
} ./libcosmic-app-hook.sh

View File

@@ -30,4 +30,6 @@ makeSetupHook {
tests = tests.makeBinaryWrapper;
};
meta.license = lib.licenses.mit;
} ./make-binary-wrapper.sh

View File

@@ -15,4 +15,6 @@ makeSetupHook {
passthru.tests = {
simple = callPackage ./test.nix { };
};
meta.license = lib.licenses.mit;
} ./memcached-test-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
callPackage,
makeSetupHook,
stdenv,
@@ -11,4 +12,6 @@ makeSetupHook {
iface = if stdenv.hostPlatform.isDarwin then "lo0" else "lo";
topology = ./topology.xml;
};
meta.license = lib.licenses.mit;
} ./mpi-check-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
installShellFiles,
makeWrapper,
@@ -16,4 +17,5 @@ makeSetupHook {
hostNode = "${nodejs}/bin/node";
jq = "${jq}/bin/jq";
};
meta.license = lib.licenses.mit;
} ./hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
installShellFiles,
jq,
@@ -10,4 +11,5 @@ makeSetupHook {
substitutions = {
jq = "${jq}/bin/jq";
};
meta.license = lib.licenses.mit;
} ./hook.sh

View File

@@ -26,6 +26,7 @@ let
pythonIncludeDir = "${python}/include/python${python.pythonVersion}";
pythonSitePackages = "${python}/${python.sitePackages}";
};
meta.license = lib.licenses.mit;
} ./pybind11-setup-hook.sh;
in
buildPythonPackage (finalAttrs: {

View File

@@ -14,6 +14,7 @@ makeSetupHook {
passthru.tests.test = callPackage ./test.nix { };
meta = {
description = "Setup hook to patch executable paths in ppd files";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.yarny ];
};
} ./patch-ppd-hook.sh

View File

@@ -9,6 +9,9 @@ makeSetupHook {
passthru.tests = {
simple = callPackage ./test.nix { };
};
# See comment in postgresql's generic.nix doInstallCheck section.
meta.badPlatforms = lib.platforms.darwin;
meta = {
# See comment in postgresql's generic.nix doInstallCheck section.
badPlatforms = lib.platforms.darwin;
license = lib.licenses.mit;
};
} ./postgresql-test-hook.sh

View File

@@ -16,4 +16,5 @@ makeSetupHook {
simple = callPackage ./test.nix { };
python3-valkey = python3Packages.valkey;
};
meta.license = lib.licenses.mit;
} ./redis-test-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
teensy-cmake-macros,
}:
@@ -13,5 +14,6 @@ makeSetupHook {
meta = {
description = "Setup hook for teensy-cmake-macros";
inherit (teensy-cmake-macros.meta) maintainers platforms broken;
license = lib.licenses.mit;
};
} ./setup-hook.sh

View File

@@ -128,6 +128,7 @@ stdenv.mkDerivation (finalAttrs: {
tee = lib.getExe' coreutils "tee";
tor = lib.getExe finalAttrs.finalPackage;
};
meta.license = lib.licenses.mit;
} ./proxy-hook.sh;
};

View File

@@ -21,5 +21,6 @@ makeSetupHook {
meta = {
description = "Check validity of udev rules in outputs";
maintainers = with lib.maintainers; [ grimmauld ];
license = lib.licenses.mit;
};
} ./hook.sh

View File

@@ -13,5 +13,6 @@ makeSetupHook {
meta = {
description = "Lookup for $version in the output of --help and --version";
maintainers = with lib.maintainers; [ doronbehar ];
license = lib.licenses.mit;
};
} ./hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
waf,
}:
@@ -16,5 +17,6 @@ makeSetupHook {
meta = {
description = "Setup hook for using Waf in Nixpkgs";
inherit (waf.meta) maintainers platforms broken;
license = lib.licenses.mit;
};
} ./setup-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeBinaryWrapper,
makeSetupHook,
}:
@@ -6,4 +7,5 @@
makeSetupHook {
name = "wrapGNUstepAppsHook";
propagatedBuildInputs = [ makeBinaryWrapper ];
meta.license = lib.licenses.mit;
} ./wrapGNUstepAppsHook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
yarn-berry-offline,
srcOnly,
@@ -20,5 +21,6 @@ makeSetupHook {
};
meta = {
description = "Install nodejs dependencies from an offline yarn cache produced by fetchYarnDeps";
license = lib.licenses.mit;
};
} ./yarn-berry-config-hook.sh

View File

@@ -1,30 +1,40 @@
{ makeSetupHook }:
{
lib,
makeSetupHook,
}:
{
beamCopySourceHook = makeSetupHook {
name = "beam-copy-source-hook.sh";
meta.license = lib.licenses.mit;
} ./beam-copy-source-hook.sh;
beamModuleInstallHook = makeSetupHook {
name = "beam-module-install-hook.sh";
meta.license = lib.licenses.mit;
} ./beam-module-install-hook.sh;
mixBuildDirHook = makeSetupHook {
name = "mix-configure-hook.sh";
meta.license = lib.licenses.mit;
} ./mix-build-dir-hook.sh;
mixCompileHook = makeSetupHook {
name = "mix-compile-hook.sh";
meta.license = lib.licenses.mit;
} ./mix-compile-hook.sh;
mixAppConfigPatchHook = makeSetupHook {
name = "mix-config-patch-hook.sh";
meta.license = lib.licenses.mit;
} ./mix-app-config-patch-hook.sh;
rebar3CompileHook = makeSetupHook {
name = "rebar3-compile-hook.sh";
meta.license = lib.licenses.mit;
} ./rebar3-compile-hook.sh;
rebarDevendorPatchHook = makeSetupHook {
name = "rebar-devendor-patch-hook.sh";
meta.license = lib.licenses.mit;
} ./rebar-devendor-patch-hook.sh;
}

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
unzip,
zip,
@@ -11,4 +12,5 @@ makeSetupHook {
inherit unzip zip xmlstarlet;
stripNondeterminism = strip-nondeterminism;
};
meta.license = lib.licenses.mit;
} ./nuget-package-hook.sh

View File

@@ -26,4 +26,6 @@ makeSetupHook {
passthru = {
inherit enableHook;
};
meta.license = lib.licenses.mit;
} ./auto-add-cuda-compat-runpath.sh

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -27,6 +27,8 @@ let
# STACK_IN_NIX_EXTRA_ARGS.
stackHook = makeSetupHook {
name = "stack-hook";
meta.license = lib.licenses.mit;
} ./stack-hook.sh;
in

View File

@@ -1,5 +1,6 @@
# Hooks for building lua packages.
{
lib,
lua,
makeSetupHook,
}:
@@ -19,6 +20,7 @@ in
propagatedBuildInputs = [
busted
];
meta.license = lib.licenses.mit;
} ./busted-check-hook.sh
) { };
@@ -27,6 +29,7 @@ in
makeSetupHook {
name = "luarocks-check-hook";
propagatedBuildInputs = [ luarocks ];
meta.license = lib.licenses.mit;
} ./luarocks-check-hook.sh
) { };
@@ -34,5 +37,6 @@ in
# we move the files around ourselves
luarocksMoveDataFolder = makeSetupHook {
name = "luarocks-move-rock";
meta.license = lib.licenses.mit;
} ./luarocks-move-data.sh;
}

View File

@@ -1,4 +1,5 @@
{
lib,
lua,
makeSetupHook,
makeWrapper,
@@ -13,4 +14,5 @@ makeSetupHook {
substitutions.luaHost = lua.luaOnHostForHost;
substitutions.luarocksBuild = lua.luaOnBuildForHost.pkgs.luarocks_bootstrap;
substitutions.luarocksHost = lua.luaOnHostForHost.pkgs.luarocks_bootstrap;
meta.license = lib.licenses.mit;
} ./wrap.sh

View File

@@ -1,10 +1,12 @@
# Hooks for building Octave packages.
{
lib,
makeSetupHook,
}:
{
writeRequiredOctavePackagesHook = makeSetupHook {
name = "write-required-octave-packages-hook";
meta.license = lib.licenses.mit;
} ./write-required-octave-packages-hook.sh;
}

View File

@@ -1,4 +1,5 @@
{
lib,
octave,
makeSetupHook,
makeWrapper,
@@ -13,4 +14,5 @@ makeSetupHook {
propagatedBuildInputs = [ makeWrapper ];
substitutions.executable = octave.interpreter;
substitutions.octave = octave;
meta.license = lib.licenses.mit;
} ./wrap.sh

View File

@@ -140,6 +140,7 @@ let
propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ];
meta = {
inherit (meta) maintainers platforms;
license = lib.licenses.mit;
};
} ./tcl-package-hook.sh
) { };
@@ -150,6 +151,7 @@ let
propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ];
meta = {
inherit (meta) maintainers platforms;
license = lib.licenses.mit;
};
} ./tcl-requires-check-hook.sh
) { };

View File

@@ -408,6 +408,7 @@ stdenv.mkDerivation {
llvmpipeHook = makeSetupHook {
name = "llvmpipe-hook";
substitutions.mesa = mesa;
meta.license = lib.licenses.mit;
} ./llvmpipe-hook.sh;
};
}

View File

@@ -291,6 +291,7 @@ let
inherit debug;
fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
};
meta.license = lib.licenses.mit;
} ../hooks/qmake-hook.sh
) { };
@@ -307,6 +308,7 @@ let
makeBinaryWrapper
]
++ lib.optional stdenv.hostPlatform.isLinux qtwayland.dev;
meta.license = lib.licenses.mit;
} ../hooks/wrap-qt-apps-hook.sh
) { };
}

View File

@@ -576,6 +576,7 @@ stdenv.mkDerivation (
;
debug = debugSymbols;
};
meta.license = lib.licenses.mit;
} ../hooks/qtbase-setup-hook.sh;
in
"${hook}/nix-support/setup-hook";

View File

@@ -134,6 +134,7 @@ let
depsTargetTargetPropagated = [
(onlyPluginsAndQml qtbase)
];
meta.license = lib.licenses.mit;
} ./hooks/wrap-qt-apps-hook.sh
) { };
@@ -145,6 +146,7 @@ let
substitutions = {
fix_qmake_libtool = ./hooks/fix-qmake-libtool.sh;
};
meta.license = lib.licenses.mit;
} ./hooks/qmake-hook.sh
) { };
}

View File

@@ -361,6 +361,7 @@ stdenv.mkDerivation {
qtQmlPrefix
;
};
meta.license = lib.licenses.mit;
} ../../hooks/qtbase-setup-hook.sh;
in
"${hook}/nix-support/setup-hook";

View File

@@ -26,6 +26,7 @@ let
pythonIncludeDir = "${python}/include/${python.libPrefix}";
pythonSitePackages = "${python}/${python.sitePackages}";
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh;
in
buildPythonPackage (finalAttrs: {

View File

@@ -28,17 +28,23 @@ let
inherit (gradle) version;
paths = [
(makeSetupHook { name = "gradle-setup-hook"; } (concatTextFile {
name = "setup-hook.sh";
files = [
(mitm-cache.setupHook)
(replaceVars ./setup-hook.sh {
# jdk used for keytool
inherit (gradle) jdk;
init_script = "${./init-build.gradle}";
})
];
}))
(makeSetupHook
{
name = "gradle-setup-hook";
meta.license = lib.licenses.mit;
}
(concatTextFile {
name = "setup-hook.sh";
files = [
(mitm-cache.setupHook)
(replaceVars ./setup-hook.sh {
# jdk used for keytool
inherit (gradle) jdk;
init_script = "${./init-build.gradle}";
})
];
})
)
gradle
mitm-cache
];

View File

@@ -20,6 +20,7 @@ let
darwinSuffixSalt = stdenv.cc.suffixSalt;
avrSuffixSalt = avrgcc.suffixSalt;
};
meta.license = lib.licenses.mit;
} ./setup-hook-darwin.sh;
in

View File

@@ -47,6 +47,7 @@ let
];
mkdirp = makeSetupHook {
name = "openra-mkdirp-hook";
meta.license = lib.licenses.mit;
} ./mkdirp.sh;
in

View File

@@ -77,7 +77,10 @@ let
None = null;
};
moveOutputsHook = makeSetupHook { name = "kf6-move-outputs-hook"; } ./move-outputs-hook.sh;
moveOutputsHook = makeSetupHook {
name = "kf6-move-outputs-hook";
meta.license = lib.licenses.mit;
} ./move-outputs-hook.sh;
qmllintHook = makeSetupHook {
name = "qmllint-validate-hook";
@@ -85,6 +88,7 @@ let
qmllint = "${qt6.qtdeclarative}/bin/qmllint";
jq = lib.getExe jq;
};
meta.license = lib.licenses.mit;
} ./qmllint-hook.sh;
in
{

View File

@@ -1,3 +1,9 @@
{ makeSetupHook }:
{
lib,
makeSetupHook,
}:
makeSetupHook { name = "freebsd-setup-hook"; } ./setup-hook.sh
makeSetupHook {
name = "freebsd-setup-hook";
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
writeText,
stat,
@@ -9,8 +10,13 @@
# breaks stdenv. Work around that with a hook that will point
# NetBSD's build system and NetBSD stat without including it in
# PATH.
makeSetupHook { name = "netbsd-stat-hook"; } (
writeText "netbsd-stat-hook-impl" ''
makeFlagsArray+=(TOOL_STAT=${stat}/bin/stat)
''
)
makeSetupHook
{
name = "netbsd-stat-hook";
meta.license = lib.licenses.mit;
}
(
writeText "netbsd-stat-hook-impl" ''
makeFlagsArray+=(TOOL_STAT=${stat}/bin/stat)
''
)

View File

@@ -1,3 +1,9 @@
{ makeSetupHook }:
{
lib,
makeSetupHook,
}:
makeSetupHook { name = "netbsd-setup-hook"; } ./setup-hook.sh
makeSetupHook {
name = "netbsd-setup-hook";
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -1,4 +1,5 @@
{
lib,
makeSetupHook,
writeText,
stat,
@@ -10,8 +11,13 @@
# NetBSD's build system and NetBSD stat without including it in
# PATH.
makeSetupHook { name = "netbsd-stat-hook"; } (
writeText "netbsd-stat-hook-impl" ''
makeFlagsArray+=(TOOL_STAT=${stat}/bin/stat)
''
)
makeSetupHook
{
name = "netbsd-stat-hook";
meta.license = lib.licenses.mit;
}
(
writeText "netbsd-stat-hook-impl" ''
makeFlagsArray+=(TOOL_STAT=${stat}/bin/stat)
''
)

View File

@@ -1,4 +1,5 @@
{
lib,
stdenv,
makeSetupHook,
compat,
@@ -10,4 +11,5 @@ makeSetupHook {
inherit compat;
inherit (stdenv.cc) suffixSalt;
};
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -1,3 +1,9 @@
{ makeSetupHook }:
{
lib,
makeSetupHook,
}:
makeSetupHook { name = "openbsd-setup-hook"; } ./setup-hook.sh
makeSetupHook {
name = "openbsd-setup-hook";
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -11,5 +11,6 @@ makeSetupHook {
objdump = "${lib.getBin binutils-unwrapped}/${stdenv.targetPlatform.config}/bin/objdump";
};
meta.license = lib.licenses.mit;
passthru.tests = callPackage ./tests { };
} ./cygwin-dll-link.sh

View File

@@ -1,6 +1,11 @@
{ signingUtils, makeSetupHook }:
{
lib,
signingUtils,
makeSetupHook,
}:
makeSetupHook {
name = "auto-sign-darwin-binaries-hook";
propagatedBuildInputs = [ signingUtils ];
meta.license = lib.licenses.mit;
} ./auto-sign-hook.sh

View File

@@ -1,6 +1,11 @@
{ makeSetupHook, pkgsBuildHost }:
{
lib,
makeSetupHook,
pkgsBuildHost,
}:
makeSetupHook {
name = "xcode-project-check-hook";
propagatedBuildInputs = [ pkgsBuildHost.openssl ];
meta.license = lib.licenses.mit;
} ./setup-hook.sh

View File

@@ -7,7 +7,7 @@
let
manifestRequirementsCheckHook = import ./manifest-requirements-check-hook.nix {
inherit makeSetupHook;
inherit lib makeSetupHook;
inherit (home-assistant) python;
};
in

View File

@@ -1,4 +1,5 @@
{
lib,
python,
makeSetupHook,
}:
@@ -9,4 +10,5 @@ makeSetupHook {
pythonCheckInterpreter = python.interpreter;
checkManifest = ./check_manifest.py;
};
meta.license = lib.licenses.mit;
} ./manifest-requirements-check-hook.sh

View File

@@ -247,6 +247,7 @@ with pkgs;
{ makeSetupHook }:
makeSetupHook {
name = "add-bin-to-path-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/add-bin-to-path.sh
) { };
@@ -276,6 +277,7 @@ with pkgs;
gettext
libtool
];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/autoreconf.sh
) { };
@@ -301,6 +303,7 @@ with pkgs;
stripJavaArchivesHook = makeSetupHook {
name = "strip-java-archives-hook";
propagatedBuildInputs = [ strip-nondeterminism ];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/strip-java-archives.sh;
ensureNewerSourcesHook =
@@ -308,6 +311,7 @@ with pkgs;
makeSetupHook
{
name = "ensure-newer-sources-hook";
meta.license = lib.licenses.mit;
}
(
writeScript "ensure-newer-sources-hook.sh" ''
@@ -345,6 +349,7 @@ with pkgs;
runtimeShell = if stdenv.buildPlatform == stdenv.hostPlatform then stdenv.shell else runtimeShell;
};
};
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/update-autotools-gnu-config-scripts.sh;
gogUnpackHook = makeSetupHook {
@@ -353,6 +358,7 @@ with pkgs;
innoextract
file-rename
];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/gog-unpack.sh;
buildEnv = callPackage ../build-support/buildenv { }; # not actually a package
@@ -432,6 +438,7 @@ with pkgs;
dieHook = makeSetupHook {
name = "die-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/die.sh;
devShellTools = callPackage ../build-support/dev-shell-tools { };
@@ -738,10 +745,12 @@ with pkgs;
ld-is-cc-hook = makeSetupHook {
name = "ld-is-cc-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/ld-is-cc-hook.sh;
copyDesktopItems = makeSetupHook {
name = "copy-desktop-items-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/copy-desktop-items.sh;
makeDesktopItem = callPackage ../build-support/make-desktopitem { };
@@ -761,6 +770,7 @@ with pkgs;
copyPkgconfigItems = makeSetupHook {
name = "copy-pkg-config-items-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/copy-pkgconfig-items.sh;
makePkgconfigItem = callPackage ../build-support/make-pkgconfigitem { };
@@ -792,6 +802,7 @@ with pkgs;
passthru = {
tests = tests.makeWrapper;
};
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/make-wrapper.sh;
compressFirmwareXz = callPackage ../build-support/kernel/compress-firmware.nix { type = "xz"; };
@@ -839,6 +850,7 @@ with pkgs;
pruneLibtoolFiles = makeSetupHook {
name = "prune-libtool-files";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/prune-libtool-files.sh;
closureInfo = callPackage ../build-support/closure-info.nix { };
@@ -848,6 +860,7 @@ with pkgs;
shortenPerlShebang = makeSetupHook {
name = "shorten-perl-shebang-hook";
propagatedBuildInputs = [ dieHook ];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/shorten-perl-shebang.sh;
singularity-tools = callPackage ../build-support/singularity-tools { };
@@ -906,6 +919,7 @@ with pkgs;
setJavaClassPath = makeSetupHook {
name = "set-java-classpath-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/set-java-classpath.sh;
fixDarwinDylibNames = callPackage (
@@ -917,7 +931,10 @@ with pkgs;
makeSetupHook {
name = "fix-darwin-dylib-names-hook";
substitutions = { inherit (targetPackages.stdenv.cc) targetPrefix; };
meta.platforms = lib.platforms.darwin;
meta = {
platforms = lib.platforms.darwin;
license = lib.licenses.mit;
};
} ../build-support/setup-hooks/fix-darwin-dylib-names.sh
) { };
@@ -931,18 +948,22 @@ with pkgs;
imagemagick
(onlyBin python3Packages.icnsutil)
];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/desktop-to-darwin-bundle.sh;
keepBuildTree = makeSetupHook {
name = "keep-build-tree-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/keep-build-tree.sh;
moveBuildTree = makeSetupHook {
name = "move-build-tree-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/move-build-tree.sh;
enableGCOVInstrumentation = makeSetupHook {
name = "enable-gcov-instrumentation-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/enable-coverage-instrumentation.sh;
makeGCOVReport = makeSetupHook {
@@ -951,6 +972,7 @@ with pkgs;
lcov
enableGCOVInstrumentation
];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/make-coverage-analysis-report.sh;
makeHardcodeGsettingsPatch = callPackage ../build-support/make-hardcode-gsettings-patch { };
@@ -960,6 +982,7 @@ with pkgs;
findXMLCatalogs = makeSetupHook {
name = "find-xml-catalogs-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/find-xml-catalogs.sh;
wrapGAppsHook3 = wrapGAppsNoGuiHook.override {
@@ -977,21 +1000,25 @@ with pkgs;
separateDebugInfo = makeSetupHook {
name = "separate-debug-info-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/separate-debug-info.sh;
setupDebugInfoDirs = makeSetupHook {
name = "setup-debug-info-dirs-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/setup-debug-info-dirs.sh;
writableTmpDirAsHomeHook = callPackage (
{ makeSetupHook }:
makeSetupHook {
name = "writable-tmpdir-as-home-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/writable-tmpdir-as-home.sh
) { };
useOldCXXAbi = makeSetupHook {
name = "use-old-cxx-abi-hook";
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/use-old-cxx-abi.sh;
validatePkgConfig = makeSetupHook {
@@ -1000,6 +1027,7 @@ with pkgs;
findutils
pkg-config
];
meta.license = lib.licenses.mit;
} ../build-support/setup-hooks/validate-pkg-config.sh;
#package writers
@@ -1819,6 +1847,7 @@ with pkgs;
exe_wrapper = '${lib.escape [ "'" "\\" ] (stdenv.targetPlatform.emulator pkgs)}'
'';
};
meta.license = lib.licenses.mit;
}
# The throw is moved into the `makeSetupHook` derivation, so that its
# outer level, but not its outPath can still be evaluated if the condition
@@ -2146,7 +2175,7 @@ with pkgs;
diffutils = callPackage ../tools/text/diffutils { };
inherit (import ../build-support/dlang/dub-support.nix { inherit callPackage; })
inherit (import ../build-support/dlang/dub-support.nix { inherit lib callPackage; })
dub-to-nix
importDubLock
buildDubPackage
@@ -5903,6 +5932,7 @@ with pkgs;
xcbuildHook = makeSetupHook {
name = "xcbuild-hook";
propagatedBuildInputs = [ xcbuild ];
meta.license = lib.licenses.mit;
} ../by-name/xc/xcbuild/setup-hook.sh;
xcodebuild = xcbuild;
@@ -7427,6 +7457,7 @@ with pkgs;
darwinMinVersionVariable = lib.escapeShellArg stdenv.hostPlatform.darwinMinVersionVariable;
deploymentTarget = lib.escapeShellArg deploymentTarget;
};
meta.license = lib.licenses.mit;
} ../os-specific/darwin/darwin-min-version-hook/setup-hook.sh;
### DEVELOPMENT / TESTING TOOLS
@@ -11902,6 +11933,7 @@ with pkgs;
bsdSetupHook = makeSetupHook {
name = "bsd-setup-hook";
meta.license = lib.licenses.mit;
} ../os-specific/bsd/setup-hook.sh;
freebsd = callPackage ../os-specific/bsd/freebsd { };