From 8930a67d1919163acb0e73ded74a6cddb76e353f Mon Sep 17 00:00:00 2001 From: puzzlewolf Date: Fri, 27 Mar 2020 22:19:27 +0100 Subject: [PATCH] line-awesome: init at 1.3.0 --- pkgs/data/fonts/line-awesome/default.nix | 36 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/data/fonts/line-awesome/default.nix diff --git a/pkgs/data/fonts/line-awesome/default.nix b/pkgs/data/fonts/line-awesome/default.nix new file mode 100644 index 000000000000..f100f81b3d79 --- /dev/null +++ b/pkgs/data/fonts/line-awesome/default.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + pname = "line-awesome"; + version = "1.3.0"; + + src = fetchurl { + url = + "https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/${version}/line-awesome-${version}.zip"; + hash = "sha256:07qkz8s1wjh5xwqlq1b4lpihr1zah3kh6bnqvfwvncld8l9wjqfk"; + }; + + nativeBuildInputs = [ unzip ]; + + sourceRoot = "${version}/fonts"; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + mkdir -p $out/share/fonts/woff + mkdir -p $out/share/fonts/woff2 + cp *.ttf $out/share/fonts/truetype + cp *.woff $out/share/fonts/woff + cp *.woff2 $out/share/fonts/woff2 + ''; + + meta = with lib; { + description = "Replace Font Awesome with modern line icons"; + longDescription = '' + This package includes only the TTF, WOFF and WOFF2 fonts. For full CSS etc. see the project website. + ''; + homepage = "https://icons8.com/line-awesome"; + license = licenses.mit; + maintainers = with maintainers; [ puzzlewolf ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fec1b542cb4b..7341c0e8f8d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17905,6 +17905,8 @@ in libre-franklin = callPackage ../data/fonts/libre-franklin { }; + line-awesome = callPackage ../data/fonts/line-awesome { }; + lmmath = callPackage ../data/fonts/lmmath {}; lmodern = callPackage ../data/fonts/lmodern { };