From 5e6ac68f5b493a0efde6d39caea281247fd4dddd Mon Sep 17 00:00:00 2001 From: Kiran Ostrolenk Date: Thu, 15 Jun 2023 20:08:35 +0200 Subject: [PATCH] linearicons-free: init at v1.0.0 This is a free line icon font from https://linearicons.com/free --- pkgs/data/fonts/linearicons-free/default.nix | 30 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/linearicons-free/default.nix diff --git a/pkgs/data/fonts/linearicons-free/default.nix b/pkgs/data/fonts/linearicons-free/default.nix new file mode 100644 index 000000000000..9b310a38d5ac --- /dev/null +++ b/pkgs/data/fonts/linearicons-free/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchzip, stdenvNoCC }: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "linearicons-free"; + version = "1.0.0"; + + src = fetchzip { + url = "https://cdn.linearicons.com/free/${finalAttrs.version}/Linearicons-Free-v${finalAttrs.version}.zip"; + hash = "sha256-0Gb0CRdgzSnpeN+x8TrH5TCrAA57+jsBWZ4FgJ8cm08="; + }; + + installPhase = '' + runHook preInstall + + install -D -m444 -t $out/share/fonts/truetype $src/Desktop\ Font/Linearicons-Free.ttf + + runHook postInstall + ''; + + meta = { + description = "Crisp Line Icons by Perxis"; + longDescription = '' + See cheat sheet here: https://linearicons.com/free#cheat-sheet + ''; + homepage = "https://linearicons.com/free"; + license = lib.licenses.cc-by-sa-40; + maintainers = [ lib.maintainers.CardboardTurkey ]; + platforms = lib.platforms.all; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 587345e59742..6c73ec4378b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28681,6 +28681,8 @@ with pkgs; line-awesome = callPackage ../data/fonts/line-awesome { }; + linearicons-free = callPackage ../data/fonts/linearicons-free { }; + linja-pi-pu-lukin = callPackage ../data/fonts/linja-pi-pu-lukin { }; linja-sike = callPackage ../data/fonts/linja-sike { };