From 690b461868142033cc7c9dc012aee8c3bf4ca8b8 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 6 Mar 2024 08:54:12 -0500 Subject: [PATCH] fuckport: add desc --- packages/fuckport.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/fuckport.nix b/packages/fuckport.nix index cb782e06..35206e3a 100644 --- a/packages/fuckport.nix +++ b/packages/fuckport.nix @@ -1,11 +1,14 @@ { writeShellApplication, jc, jq, ... }: -# Kill the process with the port open -# Used only to kill stale ghc. -# FIXME: This doesn't work when lsof returns *multiple* processes. writeShellApplication { name = "fuckport"; runtimeInputs = [ jc jq ]; + meta.description = '' + Kill the process with the port open + + Used only to kill stale ghc. + ''; + # FIXME: This doesn't work when lsof returns *multiple* processes. text = '' lsof -i :"$1" THEPID=$(lsof -i :"$1" | jc --lsof 2> /dev/null | jq '.[].pid')