diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-11-14 22:28:58 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-11-14 22:28:58 +0100 |
| commit | 8d45a910b271cf6bfa26c0ed4007392635866dc8 (patch) | |
| tree | 840d5921e513d305665c12bd81a941886353c7e0 /pkgs | |
| parent | 19a0c33863da3223145e4e1c1315d5332ff53df5 (diff) | |
separate pkgs from the rest of the code
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/default.nix | 5 | ||||
| -rw-r--r-- | pkgs/line-awesome-css.nix | 17 |
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}' + ''; +} |
