diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 22:55:52 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 22:55:52 +0100 |
| commit | 7531ec61a93b953de7806fdef31b27a08365ab30 (patch) | |
| tree | 874cd2dd82cd6c64d1472ff45d565774fd6911c8 /pkgs | |
| parent | e7b4580cdc5e66956a72d67c1b44bac3b466d6e5 (diff) | |
pkgs: add line awesome css
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/css/lineAwesome/default.nix | 17 | ||||
| -rw-r--r-- | pkgs/default.nix | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/css/lineAwesome/default.nix b/pkgs/css/lineAwesome/default.nix new file mode 100644 index 0000000..0da29ac --- /dev/null +++ b/pkgs/css/lineAwesome/default.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}' + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 14cbfaa..a736462 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -9,6 +9,10 @@ let { lib.home-manager = import ./lib/home-manager { }; } // + # css + { + line-awesome-css = pkgs.callPackage ./css/lineAwesome { }; + } # firefox packages firefoxAddons // { arkenfoxUserJs = pkgs.callPackage ./firefox/user-js/arkenfox.nix { }; |
