summaryrefslogtreecommitdiff
path: root/pkgs/build-support/setup-hooks/arrayUtilities/getSortedMapKeys/package.nix
blob: 0a610db6eeeddd0a5a153536346fd82ed3103997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  callPackages,
  isDeclaredArray,
  isDeclaredMap,
  makeSetupHook,
  sortArray,
}:
makeSetupHook {
  name = "getSortedMapKeys";
  propagatedBuildInputs = [
    isDeclaredArray
    isDeclaredMap
    sortArray
  ];
  passthru.tests = callPackages ./tests.nix { };
  meta.description = "Gets the sorted indices of an associative array";
} ./getSortedMapKeys.bash