summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix5
-rw-r--r--pkgs/line-awesome-css.nix17
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
new file mode 100644
index 0000000..af2ab5e
--- /dev/null
+++ b/pkgs/default.nix
@@ -0,0 +1,5 @@
+{ pkgs }:
+
+{
+ line-awesome-css = pkgs.callPackage ./line-awesome-css.nix {};
+}
diff --git a/pkgs/line-awesome-css.nix b/pkgs/line-awesome-css.nix
new file mode 100644
index 0000000..a00e128
--- /dev/null
+++ b/pkgs/line-awesome-css.nix
@@ -0,0 +1,17 @@
+{ stdenv, fetchurl, fontsRelativeDirectory ? "./webfonts" }:
+stdenv.mkDerivation rec {
+ name = "line-awesome-css";
+ version = "v1.2.1";
+
+ src = fetchurl {
+ url =
+ "https://raw.githubusercontent.com/icons8/line-awesome/${version}/dist/line-awesome/css/line-awesome.css";
+ sha256 = "sha256:GU24Xz6l3Ww4ZCcL2ByssTe04fHBRz9k2aZVRdj0xm4=";
+ };
+
+ phases = [ "installPhase" ];
+ installPhase = ''
+ cp $src $out
+ substituteInPlace $out --replace '../fonts' '${fontsRelativeDirectory}'
+ '';
+}