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/mph-2b-damase | |
parent | 691da0cbb99c7b72480bc836b11cc296739edaee (diff) |
data/fonts: simpler cleanups
Diffstat (limited to 'pkgs/data/fonts/mph-2b-damase')
-rw-r--r-- | pkgs/data/fonts/mph-2b-damase/default.nix | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/pkgs/data/fonts/mph-2b-damase/default.nix b/pkgs/data/fonts/mph-2b-damase/default.nix index 49d857ec575a4..5729561c5809a 100644 --- a/pkgs/data/fonts/mph-2b-damase/default.nix +++ b/pkgs/data/fonts/mph-2b-damase/default.nix @@ -1,23 +1,16 @@ -{stdenv, fetchurl, unzip}: +{stdenv, fetchzip}: -stdenv.mkDerivation { +fetchzip { name = "MPH-2B-Damase"; - src = fetchurl { - url = http://www.wazu.jp/downloads/damase_v.2.zip; - sha256 = "0y7rakbysjjrzcc5y100hkn64j7js434x20pyi6rllnw2w2n1y1h"; - }; - - buildInputs = [unzip]; + url = http://www.wazu.jp/downloads/damase_v.2.zip; - unpackPhase = '' - unzip $src; + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype ''; - installPhase = '' - mkdir -p $out/share/fonts/truetype - cp *.ttf $out/share/fonts/truetype - ''; + sha256 = "0yzf12z6fpbgycqwiz88f39iawdhjabadfa14wxar3nhl9n434ql"; meta = { platforms = stdenv.lib.platforms.unix; |