data/fonts: simpler cleanups
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "stix-two-${version}";
|
||||
let
|
||||
version = "2.0.0";
|
||||
in fetchzip {
|
||||
name = "stix-two-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
|
||||
sha256 = "0f6rcg0p2dhnks523nywgkjk56bjajz3gnwsrap932674xxjkb3g";
|
||||
};
|
||||
url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
cp -v "Fonts/OTF/"*.otf $out/share/fonts/opentype
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
'';
|
||||
|
||||
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.stixfonts.org/;
|
||||
description = "Fonts for Scientific and Technical Information eXchange";
|
||||
|
||||
Reference in New Issue
Block a user