diff options
author | Volth <volth@webmaster.ms> | 2017-08-10 19:43:49 +0000 |
---|---|---|
committer | Volth <volth@webmaster.ms> | 2017-08-11 14:26:03 +0000 |
commit | 31c344982f0c47af4d33cb5a37125deb1d767ef0 (patch) | |
tree | 66227ecc2adcf14cc1a552364eb8940358199f5a /pkgs/data/fonts/libre-franklin | |
parent | 691da0cbb99c7b72480bc836b11cc296739edaee (diff) |
data/fonts: simpler cleanups
Diffstat (limited to 'pkgs/data/fonts/libre-franklin')
-rw-r--r-- | pkgs/data/fonts/libre-franklin/default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/data/fonts/libre-franklin/default.nix b/pkgs/data/fonts/libre-franklin/default.nix index 473102d77efd2..9ca37e3564093 100644 --- a/pkgs/data/fonts/libre-franklin/default.nix +++ b/pkgs/data/fonts/libre-franklin/default.nix @@ -1,22 +1,18 @@ -{ stdenv, fetchFromGitHub }: +{ stdenv, fetchzip }: -stdenv.mkDerivation rec { +fetchzip rec { name = "libre-franklin-1.014"; - src = fetchFromGitHub { - owner = "impallari"; - repo = "Libre-Franklin"; - rev = "006293f34c47bd752fdcf91807510bc3f91a0bd3"; - sha256 = "0df41cqhw5dz3g641n4nd2jlqjf5m4fkv067afk3759m4hg4l78r"; - }; + url = https://github.com/impallari/Libre-Franklin/archive/006293f34c47bd752fdcf91807510bc3f91a0bd3.zip; - installPhase = '' - mkdir -p $out/share/fonts/opentype - mkdir -p $out/share/doc/${name} - cp -v "fonts/OTF/"*.otf $out/share/fonts/opentype/ - cp -v README.md FONTLOG.txt $out/share/doc/${name} + postFetch = '' + mkdir -p $out/share/{doc,fonts} + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}" ''; + sha256 = "1rkjp8x62cn4alw3lp7m45q34bih81j2hg15kg5c1nciyqq1qz0z"; + meta = with stdenv.lib; { description = "A reinterpretation and expansion based on the 1912 Morris Fuller Benton’s classic."; homepage = https://github.com/impallari/Libre-Franklin; |