nur-packages

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

commit 7a9da31d1e725cf49ea6d4fa43cfd9f1a10eadab
parent 2ec7ae53025d3f650c85c892cdde020b7cee5b7c
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 16 Aug 2022 17:22:16 +0300

Add libutf

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -436,6 +436,7 @@ lib.makeScope newScope ( lel = callPackage ./suckless/lel { }; libgrapheme = callPackage ./suckless/libgrapheme { }; libst = callPackage ./suckless/libst { }; + libutf = callPackage ./suckless/libutf { }; mage = callPackage ./suckless/mage { }; makel = callPackage ./suckless/makel { }; nextvi = callPackage ./suckless/nextvi { }; diff --git a/pkgs/suckless/libutf/default.nix b/pkgs/suckless/libutf/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, libutf, ncurses }: + +stdenv.mkDerivation rec { + pname = "libutf"; + version = "2018-11-13"; + + src = fetchFromGitHub { + owner = "cls"; + repo = "libutf"; + rev = "ee5074db68f498a5c802dc9f1645f396c219938a"; + hash = "sha256-pgiomcCM3PKNdryj4F6DuH3EI8dTKOIt1hr2AvBXIoQ="; + }; + + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Plan 9 compatible UTF-8 C library"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}