mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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
|
||||
version = "0.133";
|
||||
in fetchzip {
|
||||
in stdenv.mkDerivation {
|
||||
name = "culmus-${version}";
|
||||
|
||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
|
||||
sha256 = "0q80j3vixn364sc23hcy6098rkgy0kb4p91lky6224am1dwn2qmr";
|
||||
};
|
||||
|
||||
postFetch = ''
|
||||
tar -xzvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/{truetype,type1}
|
||||
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 *.otf $out/share/fonts/truetype/
|
||||
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
|
||||
'';
|
||||
|
||||
sha256 = "1jxg2wf4kwasp5cia00nki2lrcdnhsyh4yy7d05l0a9bim5hq2lr";
|
||||
|
||||
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.";
|
||||
|
Loading…
Reference in New Issue
Block a user