2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
}:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "killport";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.9.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-eyRI4ZVp9HPMvpzyV9sQdh2r966pCdyUPnEhxGkzH3Q=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-QQ43dT9BTu7qCzpnTGKzlVL6jKDXofXStYWYNLHSuVs=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool to easily kill processes running on a specified port";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/jkfran/killport";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sno2wman ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "killport";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|