about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorpuzzlewolf <mail@nora.pink>2020-03-27 22:19:27 +0100
committerpuzzlewolf <mail@nora.pink>2020-04-15 15:35:51 +0200
commit8930a67d1919163acb0e73ded74a6cddb76e353f (patch)
tree1d620d468589b0f53c1a1c17af18cc34b1468c03 /pkgs/data
parentb3c2a06583ea3cb5b3e5fc14cda4959bb4bcdb2e (diff)
line-awesome: init at 1.3.0
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/line-awesome/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/data/fonts/line-awesome/default.nix b/pkgs/data/fonts/line-awesome/default.nix
new file mode 100644
index 0000000000000..f100f81b3d790
--- /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;
+  };
+}