From 9e299acf873285e30008588ac3e21cda12f865fb Mon Sep 17 00:00:00 2001 From: volth Date: Sat, 4 Feb 2017 15:38:01 +0000 Subject: [PATCH] liberastika: init at 1.1.5 (#22420) --- pkgs/data/fonts/liberastika/default.nix | 33 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/data/fonts/liberastika/default.nix diff --git a/pkgs/data/fonts/liberastika/default.nix b/pkgs/data/fonts/liberastika/default.nix new file mode 100644 index 000000000000..964210c8dfe5 --- /dev/null +++ b/pkgs/data/fonts/liberastika/default.nix @@ -0,0 +1,33 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + name = "liberastika-${version}"; + version = "1.1.5"; + + src = fetchurl { + url = "mirror://sourceforge/project/lib-ka/liberastika-ttf-${version}.zip"; + sha256 = "0vg5ki120lb577ihvq8w0nxs8yacqzcvsmnsygksmn6281hyj0xj"; + }; + + buildInputs = [ unzip ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/fonts/truetype + cp -v $(find . -name '*.ttf') $out/share/fonts/truetype + + mkdir -p "$out/doc/${name}" + cp -v AUTHORS ChangeLog COPYING README "$out/doc/${name}" || true + ''; + + meta = with stdenv.lib; { + description = "Liberation Sans fork with improved cyrillic support"; + homepage = https://sourceforge.net/projects/lib-ka/; + + license = licenses.gpl2; + platforms = platforms.all; + hydraPlatforms = []; + maintainers = [ maintainers.volth ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 05f903b8d807..7f4c71a00480 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12140,6 +12140,8 @@ with pkgs; liberationsansnarrow = callPackage ../data/fonts/liberationsansnarrow { }; liberationsansnarrow_binary = callPackage ../data/fonts/liberationsansnarrow/binary.nix { }; + liberastika = callPackage ../data/fonts/liberastika { }; + libertine = callPackage ../data/fonts/libertine { }; libre-baskerville = callPackage ../data/fonts/libre-baskerville { };