diff --git a/pkgs/tools/misc/proximity-sort/default.nix b/pkgs/tools/misc/proximity-sort/default.nix new file mode 100644 index 000000000000..43a8580ab35d --- /dev/null +++ b/pkgs/tools/misc/proximity-sort/default.nix @@ -0,0 +1,20 @@ +{ lib, rustPlatform, fetchCrate }: + +rustPlatform.buildRustPackage rec { + pname = "proximity-sort"; + version = "1.2.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-So3cvL2F7wfcPVPEBspMLH4f5KSbVQeUKLJve/BXLA4="; + }; + + cargoSha256 = "sha256-VGxU3CD5pj0Hrt6nUbNU7eNEpNrzHp/WaFHAKPUz8DA="; + + meta = with lib; { + description = "Simple command-line utility for sorting inputs by proximity to a path argument"; + homepage = "https://github.com/jonhoo/proximity-sort"; + license = with licenses; [ mit /* or */ asl20 ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6d39fb0c9243..d219c700cb69 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23813,6 +23813,8 @@ with pkgs; prometheus-cpp = callPackage ../development/libraries/prometheus-cpp { }; + proximity-sort = callPackage ../tools/misc/proximity-sort { }; + psqlodbc = callPackage ../development/libraries/psqlodbc { }; public-inbox = perlPackages.callPackage ../servers/mail/public-inbox { };