data/fonts: cleanup
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
{ stdenv, fetchzip }:
|
||||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "0.133";
|
||||
in stdenv.mkDerivation {
|
||||
in fetchzip {
|
||||
name = "culmus-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||
sha256 = "0q80j3vixn364sc23hcy6098rkgy0kb4p91lky6224am1dwn2qmr";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||
postFetch = ''
|
||||
tar xf $downloadedFile --strip=1
|
||||
mkdir -p $out/share/fonts/{truetype,type1}
|
||||
cp -v *.pfa $out/share/fonts/type1/
|
||||
cp -v *.afm $out/share/fonts/type1/
|
||||
@@ -19,12 +15,13 @@ in stdenv.mkDerivation {
|
||||
cp -v *.otf $out/share/fonts/truetype/
|
||||
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
|
||||
'';
|
||||
sha256 = "0zqqjcrqmbd4389hqz2dwymkkcxjrq9ylyriiv3gbmzl6l1ffk3g";
|
||||
|
||||
meta = {
|
||||
description = "Culmus Hebrew fonts";
|
||||
longDescription = "The Culmus project aims at providing the Hebrew-speaking GNU/Linux and Unix community with a basic collection of Hebrew fonts for X Windows.";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = lib.platforms.all;
|
||||
license = lib.licenses.gpl2;
|
||||
homepage = http://culmus.sourceforge.net/;
|
||||
downloadPage = http://culmus.sourceforge.net/download.html;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user