2023-05-01 11:04:50 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
}:
|
2023-05-24 22:48:09 +02:00
|
|
|
|
2023-05-01 11:04:50 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "killport";
|
2024-01-07 07:51:12 +01:00
|
|
|
version = "0.9.2";
|
2023-05-01 11:04:50 +02:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-01-07 07:51:12 +01:00
|
|
|
hash = "sha256-eyRI4ZVp9HPMvpzyV9sQdh2r966pCdyUPnEhxGkzH3Q=";
|
2023-05-01 11:04:50 +02:00
|
|
|
};
|
|
|
|
|
2024-01-07 07:51:12 +01:00
|
|
|
cargoHash = "sha256-QQ43dT9BTu7qCzpnTGKzlVL6jKDXofXStYWYNLHSuVs=";
|
2023-05-01 11:04:50 +02:00
|
|
|
|
2023-05-24 22:48:09 +02:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2023-05-01 11:04:50 +02:00
|
|
|
|
|
|
|
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 ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "killport";
|
2023-05-01 11:04:50 +02:00
|
|
|
};
|
|
|
|
}
|