nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at master 17 lines 364 B view raw
1{ 2 callPackages, 3 isDeclaredArray, 4 isDeclaredMap, 5 makeSetupHook, 6 sortArray, 7}: 8makeSetupHook { 9 name = "getSortedMapKeys"; 10 propagatedBuildInputs = [ 11 isDeclaredArray 12 isDeclaredMap 13 sortArray 14 ]; 15 passthru.tests = callPackages ./tests.nix { }; 16 meta.description = "Gets the sorted indices of an associative array"; 17} ./getSortedMapKeys.bash