nur-packages

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

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

Add svtm

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/svtm/default.nix | 37+++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -338,6 +338,7 @@ lib.makeScope newScope ( sfeed = callPackage ./suckless/sfeed { }; sfeed_curses = callPackage ./suckless/sfeed_curses { }; sthkd = callPackage ./suckless/sthkd { }; + svtm = callPackage ./suckless/svtm { }; xprompt = callPackage ./suckless/xprompt { }; } ) diff --git a/pkgs/suckless/svtm/default.nix b/pkgs/suckless/svtm/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchFromGitHub, makeWrapper, abduco, sthkd, libst }: + +stdenv.mkDerivation rec { + pname = "svtm"; + version = "2021-04-28"; + + src = fetchFromGitHub { + owner = "jeremybobbin"; + repo = pname; + rev = "4edb0e561b5a7ceed75050a1b10340fe03f65616"; + hash = "sha256-kqUBBTDcV7XFINNBGRWq5Mf37DIyBy3+2rk+BVBqAPM="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + dontBuild = true; + + installFlags = [ "PREFIX=$(out)" ]; + + preInstall = '' + mkdir -p $out/bin + ''; + + postInstall = '' + wrapProgram $out/bin/svtm \ + --prefix PATH : ${lib.makeBinPath [ abduco sthkd libst ]}:$out/bin + ''; + + meta = with lib; { + description = "Simple Virtual Terminal Manager"; + inherit (src.meta) homepage; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.sikmir ]; + skip.ci = stdenv.isDarwin; + }; +}