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