nur-packages

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

commit 971c2d2b54d5a6e0b3195f7b2a2da49204ac7651
parent f9bdfa580f14ab7ab6044d606c54a625965f9fec
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 25 Aug 2022 03:10:00 +0300

Add kilo

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/kilo/default.nix | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -432,6 +432,7 @@ lib.makeScope newScope ( hurl = callPackage ./suckless/hurl { }; imscript = callPackage ./suckless/imscript { }; json2tsv = callPackage ./suckless/json2tsv { }; + kilo = callPackage ./suckless/kilo { }; lacc = callPackage ./suckless/lacc { }; lbm = callPackage ./suckless/lbm { }; lchat = callPackage ./suckless/lchat { }; diff --git a/pkgs/suckless/kilo/default.nix b/pkgs/suckless/kilo/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "kilo"; + version = "2020-07-05"; + + src = fetchFromGitHub { + owner = "antirez"; + repo = "kilo"; + rev = "69c3ce609d1e8df3956cba6db3d296a7cf3af3de"; + hash = "sha256-6zPzaUzBQCIciuzBp4W6pT4bvhWbC8t6bSVec5LBRiU="; + }; + + installPhase = '' + install -Dm755 kilo -t $out/bin + ''; + + meta = with lib; { + description = "A text editor in less than 1000 LOC with syntax highlight and search"; + inherit (src.meta) homepage; + license = licenses.bsd2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}