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/anonymous-pro | |
parent | 691da0cbb99c7b72480bc836b11cc296739edaee (diff) |
data/fonts: simpler cleanups
Diffstat (limited to 'pkgs/data/fonts/anonymous-pro')
-rw-r--r-- | pkgs/data/fonts/anonymous-pro/default.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/pkgs/data/fonts/anonymous-pro/default.nix b/pkgs/data/fonts/anonymous-pro/default.nix index da34a2f43aa6f..ff8813f781393 100644 --- a/pkgs/data/fonts/anonymous-pro/default.nix +++ b/pkgs/data/fonts/anonymous-pro/default.nix @@ -1,23 +1,17 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv, fetchzip }: -stdenv.mkDerivation rec { - name = "anonymousPro-${version}"; +let version = "1.002"; +in fetchzip rec { + name = "anonymousPro-${version}"; - src = fetchurl { - url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip"; - sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"; - }; - - nativeBuildInputs = [ unzip ]; - phases = [ "unpackPhase" "installPhase" ]; - - installPhase = '' - mkdir -p $out/share/fonts/truetype - mkdir -p $out/share/doc/${name} - find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \; - find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \; + url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip"; + postFetch = '' + mkdir -p $out/share/{doc,fonts} + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}" ''; + sha256 = "05rgzag38qc77b31sm5i2vwwrxbrvwzfsqh3slv11skx36pz337f"; meta = with stdenv.lib; { homepage = http://www.marksimonson.com/fonts/view/anonymous-pro; |