diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/killport/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/killport/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/killport/default.nix b/nixpkgs/pkgs/tools/misc/killport/default.nix new file mode 100644 index 000000000000..44484c17ef58 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/killport/default.nix @@ -0,0 +1,25 @@ +{ lib +, rustPlatform +, fetchCrate +}: + +rustPlatform.buildRustPackage rec { + pname = "killport"; + version = "0.9.0"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-aGnjLgDn86OUFQGj7K7+DUSGJuNEIL52yXJz/Mt5DT0="; + }; + + cargoHash = "sha256-Z3+hqssm5g7rl3XCnrmjuPhsG8E0Yc2Qg8/mjGlnaT4="; + + nativeBuildInputs = [ rustPlatform.bindgenHook ]; + + meta = with lib; { + description = "A command-line tool to easily kill processes running on a specified port"; + homepage = "https://github.com/jkfran/killport"; + license = licenses.mit; + maintainers = with maintainers; [ sno2wman ]; + }; +} |