diff options
Diffstat (limited to 'pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix')
-rw-r--r-- | pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix b/pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix index 2f7a804ad08..5a31358b72a 100644 --- a/pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix +++ b/pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix @@ -1,17 +1,13 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "5.0.0"; -in fetchzip { +in (fetchzip { name = "emacs-all-the-icons-fonts-${version}"; url = "https://github.com/domtronn/all-the-icons.el/archive/${version}.zip"; - postFetch = '' - mkdir -p $out/share/fonts - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/all-the-icons - ''; - sha256 = "0vc9bkm4pcc05llcd2c9zr3d88h3zmci0izla5wnw8hg1n0rsrii"; meta = with lib; { @@ -32,4 +28,9 @@ in fetchzip { platforms = platforms.all; maintainers = with maintainers; [ rlupton20 ]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/all-the-icons + ''; +}) |