commit 896368dca9c4c99f26ab2705e4ebbae0e29f2e69 parent 62b697cfc30ee1a0dbd57d925d30e1976c4d0f84 Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Sat, 8 Jan 2022 17:54:00 +0300 Add libgrapheme Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/suckless/libgrapheme/default.nix | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -372,6 +372,7 @@ lib.makeScope newScope ( json2tsv = callPackage ./suckless/json2tsv { }; lacc = callPackage ./suckless/lacc { }; lel = callPackage ./suckless/lel { }; + libgrapheme = callPackage ./suckless/libgrapheme { }; libst = callPackage ./suckless/libst { }; mage = callPackage ./suckless/mage { }; nsxiv = callPackage ./suckless/nsxiv { }; diff --git a/pkgs/suckless/libgrapheme/default.nix b/pkgs/suckless/libgrapheme/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "libgrapheme"; + version = "1"; + + src = fetchurl { + url = "https://dl.suckless.org/libgrapheme/libgrapheme-${version}.tar.gz"; + hash = "sha256-hiLfUVDOlB1cRmXQ4JodQsLCX2KKJ/SMoeZpV2Fi0PY="; + }; + + makeFlags = [ "AR:=$(AR)" "CC:=$(CC)" "RANLIB:=$(RANLIB)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Unicode string library"; + homepage = "https://libs.suckless.org/libgrapheme/"; + license = licenses.isc; + platforms = platforms.unix; + maintainers = [ maintainers.sikmir ]; + }; +}