summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorPascal Wittmann <PascalWittmann@gmx.net>2014-08-08 21:52:59 +0200
committerPascal Wittmann <PascalWittmann@gmx.net>2014-08-08 21:52:59 +0200
commit0cb0ad27beed9a937a139225a407a5c0783fd669 (patch)
tree685e91c52f40380d7fa3c938d8027d31d9f0619d /pkgs/data
parentf4fbcddd4484c24df5dde813dc8679a0c0c7cdd8 (diff)
parenta8168daabbd73726326927c2b57b880c38ae399c (diff)
downloadnixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar.gz
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar.bz2
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar.lz
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar.xz
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.tar.zst
nixpkgs-0cb0ad27beed9a937a139225a407a5c0783fd669.zip
Merge pull request #3211 from ttuegel/adobe-fonts
Adobe Source fonts
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/source-code-pro/default.nix2
-rw-r--r--pkgs/data/fonts/source-sans-pro/default.nix26
-rw-r--r--pkgs/data/fonts/source-serif-pro/default.nix27
3 files changed, 54 insertions, 1 deletions
diff --git a/pkgs/data/fonts/source-code-pro/default.nix b/pkgs/data/fonts/source-code-pro/default.nix
index d48fbed696c..8fde0c6ef03 100644
--- a/pkgs/data/fonts/source-code-pro/default.nix
+++ b/pkgs/data/fonts/source-code-pro/default.nix
@@ -22,7 +22,7 @@ rec {
     sha256 = sourceInfo.hash;
   };
 
-  name = "${sourceInfo.name}-${sourceInfo.version}";
+  name = "source-code-pro-${sourceInfo.version}";
   inherit buildInputs;
 
   phaseNames = ["doUnpack" "installFonts"];
diff --git a/pkgs/data/fonts/source-sans-pro/default.nix b/pkgs/data/fonts/source-sans-pro/default.nix
new file mode 100644
index 00000000000..eccddc8f14c
--- /dev/null
+++ b/pkgs/data/fonts/source-sans-pro/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, unzip }:
+
+stdenv.mkDerivation {
+  name = "source-sans-pro-1.050";
+  src = fetchurl {
+    url = "mirror://sourceforge/sourcesans.adobe/SourceSansPro_FontsOnly-1.050.zip";
+    sha256 = "002z7kx8jxp5pfrilqaxbwbr5yp9fl3zsp0imawmf5wqagpzayf3";
+  };
+
+  buildInputs = [ unzip ];
+
+  phases = "unpackPhase installPhase";
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype
+    find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://sourceforge.net/adobe/sourcesans;
+    description = "A set of OpenType fonts designed by Adobe for UIs";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ ttuegel ];
+  };
+}
diff --git a/pkgs/data/fonts/source-serif-pro/default.nix b/pkgs/data/fonts/source-serif-pro/default.nix
new file mode 100644
index 00000000000..00ebf22d469
--- /dev/null
+++ b/pkgs/data/fonts/source-serif-pro/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, unzip }:
+
+stdenv.mkDerivation {
+  name = "source-serif-pro-1.014";
+  src = fetchurl {
+    url = "mirror://sourceforge/sourceserifpro.adobe/SourceSerifPro_FontsOnly-1.014.zip";
+    sha256 = "1agack195jqq4g2hmga6f9nwg44garii1g3jpbrdlrwr97rwvqsh";
+  };
+
+  buildInputs = [ unzip ];
+
+  phases = "unpackPhase installPhase";
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype
+    find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://sourceforge.net/adobe/sourceserifpro;
+    description = "A set of OpenType fonts to complement Source Sans Pro";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ ttuegel ];
+  };
+}
+