diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-03-01 13:50:55 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-03-01 14:03:57 +0100 |
| commit | 21034a5a36d62fbad795c4139c98c32e0516ec93 (patch) | |
| tree | db063cbb3e91bf7231c0eb54fb54b3cb5ac51dfe /pkgs/static/css | |
| parent | ceb6a8075e1b6e1228b7c75a8da36ed520d32b5f (diff) | |
restructure pkgs
Diffstat (limited to 'pkgs/static/css')
| -rw-r--r-- | pkgs/static/css/lineAwesome/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/static/css/lineAwesome/default.nix b/pkgs/static/css/lineAwesome/default.nix new file mode 100644 index 0000000..b1376fe --- /dev/null +++ b/pkgs/static/css/lineAwesome/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl, fontsRelativeDirectory ? "./webfonts", fontDisplay ? "auto" +}: +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}' \ + --replace 'font-display: auto' 'font-display: ${fontDisplay}' + ''; +} |
