Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 715 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "proximity-sort"; 9 version = "1.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "jonhoo"; 13 repo = "proximity-sort"; 14 rev = "v${version}"; 15 hash = "sha256-MRLQvspv6kjirljhAkk1KT+hPA4hdjA1b7RL9eEyglQ="; 16 }; 17 18 cargoHash = "sha256-rlxNvIYtVdWth5ZEdbmxOf3GKXIBpHnGDcSO883Ldjg="; 19 20 meta = with lib; { 21 description = "Simple command-line utility for sorting inputs by proximity to a path argument"; 22 homepage = "https://github.com/jonhoo/proximity-sort"; 23 license = with licenses; [ 24 mit # or 25 asl20 26 ]; 27 maintainers = with maintainers; [ figsoda ]; 28 mainProgram = "proximity-sort"; 29 }; 30}