culmus: add .otf, .pfa and .afm files (#53638)
restructure into stdenv.mkDerivation. This resolves the problem of changing hashes.
This commit is contained in:
parent
15ec5d03e6
commit
10b50b661b
@ -2,19 +2,24 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
version = "0.133";
|
version = "0.133";
|
||||||
in fetchzip {
|
in stdenv.mkDerivation {
|
||||||
name = "culmus-${version}";
|
name = "culmus-${version}";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||||
|
sha256 = "0q80j3vixn364sc23hcy6098rkgy0kb4p91lky6224am1dwn2qmr";
|
||||||
|
};
|
||||||
|
|
||||||
postFetch = ''
|
installPhase = ''
|
||||||
tar -xzvf $downloadedFile --strip-components=1
|
mkdir -p $out/share/fonts/{truetype,type1}
|
||||||
mkdir -p $out/share/fonts/truetype
|
cp -v *.pfa $out/share/fonts/type1/
|
||||||
|
cp -v *.afm $out/share/fonts/type1/
|
||||||
|
cp -v fonts.scale-type1 $out/share/fonts/type1/fonts.scale
|
||||||
cp -v *.ttf $out/share/fonts/truetype/
|
cp -v *.ttf $out/share/fonts/truetype/
|
||||||
|
cp -v *.otf $out/share/fonts/truetype/
|
||||||
|
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "1jxg2wf4kwasp5cia00nki2lrcdnhsyh4yy7d05l0a9bim5hq2lr";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Culmus Hebrew fonts";
|
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.";
|
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.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user