summary refs log tree commit diff
path: root/pkgs/data/fonts/xkcd-font/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-04-24 21:13:39 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-04-24 21:13:39 -0500
commit6124bfac3bab543ae309633c790cd29ee52b673e (patch)
tree69da1dc510c0e14d7fc9dbd06db0aaaa0d9c3866 /pkgs/data/fonts/xkcd-font/default.nix
parent8bc92d78e7c786c439e977dde0e44c7dceb4ae24 (diff)
downloadnixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar.gz
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar.bz2
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar.lz
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar.xz
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.tar.zst
nixpkgs-6124bfac3bab543ae309633c790cd29ee52b673e.zip
xkcd-font: init at 2017-08-24
Diffstat (limited to 'pkgs/data/fonts/xkcd-font/default.nix')
-rw-r--r--pkgs/data/fonts/xkcd-font/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/fonts/xkcd-font/default.nix b/pkgs/data/fonts/xkcd-font/default.nix
new file mode 100644
index 00000000000..9aa664fd289
--- /dev/null
+++ b/pkgs/data/fonts/xkcd-font/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "xkcd-font";
+  version = "unstable-2017-08-24";
+
+  src = fetchFromGitHub {
+    owner = "ipython";
+    repo = pname;
+    rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
+    sha256 = "01wpfc1yp93b37r472mx2b459il5gywnv5sl7pp9afpycb3i4f6l";
+  };
+
+  phases = [ "unpackPhase" "installPhase" ];
+
+  installPhase = ''
+    install -Dm444 -t $out/share/fonts/opentype/ xkcd/build/xkcd.otf
+    install -Dm444 -t $out/share/fonts/truetype/ xkcd-script/font/xkcd-script.ttf
+  '';
+
+  meta = with stdenv.lib; {
+    description = "The xkcd font";
+    homepage = https://github.com/ipython/xkcd-font;
+    license = licenses.cc-by-nc-30;
+    platforms = platforms.all;
+    maintainers = [ maintainers.marsam ];
+  };
+}