nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 36332d462ed743a57339d01df89668cede974bf9
parent 7a9da31d1e725cf49ea6d4fa43cfd9f1a10eadab
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 16 Aug 2022 17:23:43 +0300

Add lchat

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/lchat/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -433,6 +433,7 @@ lib.makeScope newScope ( json2tsv = callPackage ./suckless/json2tsv { }; lacc = callPackage ./suckless/lacc { }; lbm = callPackage ./suckless/lbm { }; + lchat = callPackage ./suckless/lchat { }; lel = callPackage ./suckless/lel { }; libgrapheme = callPackage ./suckless/libgrapheme { }; libst = callPackage ./suckless/libst { }; diff --git a/pkgs/suckless/lchat/default.nix b/pkgs/suckless/lchat/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, libutf, ncurses }: + +stdenv.mkDerivation rec { + pname = "lchat"; + version = "2022-01-26"; + + src = fetchFromGitHub { + owner = "younix"; + repo = "lchat"; + rev = "adcc7010548fdd11b1d80e1da1d9410c4d8e095b"; + hash = "sha256-fiyempu1ay7TP0cCWzaAQBPMxljIVCJoYUHlZ37S1hA="; + }; + + buildInputs = [ libutf ncurses ]; + + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + preInstall = "mkdir -p $out/bin $out/share/man/man1"; + + meta = with lib; { + description = "line chat is a simple and elegant front end for ii-like chat programs"; + inherit (src.meta) homepage; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}