nur-packages

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

commit b6ce3f0e127774f869bfb27a38aee768023984ee
parent c58bf218ec0f4a6f8ad78c46dbf6fd44b6e77ee6
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat,  2 Oct 2021 22:22:18 +0300

Add libst

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/libst/default.nix | 39+++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -329,6 +329,7 @@ lib.makeScope newScope ( json2tsv = callPackage ./suckless/json2tsv { }; lacc = callPackage ./suckless/lacc { }; lel = callPackage ./suckless/lel { }; + libst = callPackage ./suckless/libst { }; quark = callPackage ./suckless/quark { }; saait = callPackage ./suckless/saait { }; sbase = callPackage ./suckless/sbase { }; diff --git a/pkgs/suckless/libst/default.nix b/pkgs/suckless/libst/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchFromGitHub, ncurses }: + +stdenv.mkDerivation rec { + pname = "libst"; + version = "2021-06-06"; + + src = fetchFromGitHub { + owner = "jeremybobbin"; + repo = pname; + rev = "4bcd511e6dd0d88730b9359fd5a4d12781c2344a"; + hash = "sha256-vpU1Hbd6c/c0M/eUvQqW7RXHG2bz707LkcKlgFrzHtc="; + }; + + nativeBuildInputs = [ ncurses ]; + + postBuild = '' + make -C examples/svt CFLAGS=-I$PWD LDFLAGS=-L$PWD + ''; + + preInstall = '' + export HOME=$TMP + mkdir -p $out/{lib,include} + ''; + + installFlags = [ "PREFIX=$(out)" ]; + + postInstall = '' + make -C examples/svt install PREFIX=$out + ''; + + meta = with lib; { + description = "Suckless Terminal ANSI parser"; + inherit (src.meta) homepage; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.sikmir ]; + skip.ci = stdenv.isDarwin; + }; +}