nixpkgs/pkgs/tools/misc/killport/default.nix

27 lines
644 B
Nix
Raw Normal View History

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