diff options
author | erdnaxe <erdnaxe@users.noreply.github.com> | 2022-10-05 14:36:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 14:36:51 +0200 |
commit | 9ae4531199d71e4e809f0ac71e25e016987710d5 (patch) | |
tree | 1251d8b87563274934860732d0ed667b09230a74 /pkgs/data/fonts/libertine | |
parent | 9a2bba46e1975a54503e006d69f357f2d0757d39 (diff) |
libertine: rename name to pname&version (#193940)
Diffstat (limited to 'pkgs/data/fonts/libertine')
-rw-r--r-- | pkgs/data/fonts/libertine/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/data/fonts/libertine/default.nix b/pkgs/data/fonts/libertine/default.nix index b3c8fd048b527..e24096e74f4ef 100644 --- a/pkgs/data/fonts/libertine/default.nix +++ b/pkgs/data/fonts/libertine/default.nix @@ -1,18 +1,22 @@ { lib, stdenv, fetchurl, fontforge }: stdenv.mkDerivation { - name = "linux-libertine-5.3.0"; + pname = "linux-libertine"; + version = "5.3.0"; src = fetchurl { url = "mirror://sourceforge/linuxlibertine/5.3.0/LinLibertineSRC_5.3.0_2012_07_02.tgz"; - sha256 = "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v"; + hash = "sha256-G+xDYKJvHPMzwnktkg9cpNTv9E9d5QFgDjReuKH57HQ="; }; sourceRoot = "."; nativeBuildInputs = [ fontforge ]; + dontConfigure = true; + buildPhase = '' + runHook preBuild for i in *.sfd; do fontforge -lang=ff -c \ 'Open($1); @@ -28,20 +32,23 @@ stdenv.mkDerivation { Generate($1:r + ".enc"); ' $i; done + runHook postBuild ''; installPhase = '' + runHook preInstall install -m444 -Dt $out/share/fonts/opentype/public *.otf install -m444 -Dt $out/share/fonts/truetype/public *.ttf install -m444 -Dt $out/share/fonts/type1/public *.pfb install -m444 -Dt $out/share/texmf/fonts/enc *.enc install -m444 -Dt $out/share/texmf/fonts/map *.map + runHook postInstall ''; meta = with lib; { description = "Linux Libertine Fonts"; homepage = "http://linuxlibertine.sf.net"; - maintainers = [ ]; + maintainers = with maintainers; [ erdnaxe ]; license = licenses.ofl; }; } |