data/fonts: simpler cleanups
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
fetchzip {
|
||||
name = "junicode-0.7.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/junicode/junicode/junicode-0-7-8/junicode-0-7-8.zip;
|
||||
sha256 = "1lgkhj52s351ya7lp9z3xba7kaivgdvg80njhpj1rpc3jcmc69vl";
|
||||
};
|
||||
url = mirror://sourceforge/junicode/junicode/junicode-0-7-8/junicode-0-7-8.zip;
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/junicode-ttf
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
''
|
||||
mkdir -p $out/share/fonts/junicode-ttf
|
||||
cp fonts/*.ttf $out/share/fonts/junicode-ttf
|
||||
'';
|
||||
sha256 = "0q4si9pnbif36154sv49kzc7ygivgflv81nzmblpz3b2p77g9956";
|
||||
|
||||
meta = {
|
||||
homepage = http://junicode.sourceforge.net/;
|
||||
|
||||
Reference in New Issue
Block a user