summary refs log tree commit diff
path: root/pkgs/data/fonts/libertinus/default.nix
diff options
context:
space:
mode:
authorLangston Barrett <langston.barrett@gmail.com>2017-11-10 01:13:47 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-10 20:47:45 +0000
commit5003f48eafeb2f6e3e75d9620efae69281179e03 (patch)
tree41b096b7973585f6a363771b1527181574b1d54e /pkgs/data/fonts/libertinus/default.nix
parent84fb41dd2698321b3ab3b04b5620cad2796f7eef (diff)
downloadnixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar.gz
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar.bz2
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar.lz
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar.xz
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.tar.zst
nixpkgs-5003f48eafeb2f6e3e75d9620efae69281179e03.zip
libertinus: init at 6.4
Diffstat (limited to 'pkgs/data/fonts/libertinus/default.nix')
-rw-r--r--pkgs/data/fonts/libertinus/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/data/fonts/libertinus/default.nix b/pkgs/data/fonts/libertinus/default.nix
new file mode 100644
index 00000000000..b4ce653da63
--- /dev/null
+++ b/pkgs/data/fonts/libertinus/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "libertinus-${version}";
+  version = "6.4";
+
+  src = fetchFromGitHub {
+    rev    = "v${version}";
+    owner  = "khaledhosny";
+    repo   = "libertinus";
+    sha256 = "0acnq4vpplp2s7kdnhncz61diji3wmhca04g27yqpk03ahb40x9g";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype/
+    mkdir -p $out/share/doc/${name}/
+    cp *.otf $out/share/fonts/opentype/
+    cp *.txt $out/share/doc/${name}/
+  '';
+
+  outputHashAlgo = "sha256";
+  outputHashMode = "recursive";
+  outputHash = "0yn526kwb4xjyf6gvf0wflqi45z5dlzicycz2q003a6if5fgqcz3";
+
+  meta = with stdenv.lib; {
+    description = "A fork of the Linux Libertine and Linux Biolinum fonts";
+    longDescription = ''
+      Libertinus fonts is a fork of the Linux Libertine and Linux Biolinum fonts
+      that started as an OpenType math companion of the Libertine font family,
+      but grown as a full fork to address some of the bugs in the fonts.
+    '';
+    homepage = https://github.com/khaledhosny/libertinus;
+    license = licenses.ofl;
+    maintainers = with maintainers; [ siddharthist ];
+    platforms = platforms.all;
+  };
+}