summary refs log tree commit diff
path: root/pkgs/data/fonts/work-sans
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-09-28 16:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-09-28 16:20:00 -0500
commit564d8e333ddeed6b3c759d9de7125c0c8b730a8b (patch)
treec891291e456162d57972a5d890f49b825d1a2797 /pkgs/data/fonts/work-sans
parentafbb73ee7177a7a0833335e49bfa7e567eaf7534 (diff)
downloadnixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar.gz
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar.bz2
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar.lz
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar.xz
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.tar.zst
nixpkgs-564d8e333ddeed6b3c759d9de7125c0c8b730a8b.zip
work-sans: init at 1.6
Diffstat (limited to 'pkgs/data/fonts/work-sans')
-rw-r--r--pkgs/data/fonts/work-sans/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/data/fonts/work-sans/default.nix b/pkgs/data/fonts/work-sans/default.nix
new file mode 100644
index 00000000000..16a0e9ac021
--- /dev/null
+++ b/pkgs/data/fonts/work-sans/default.nix
@@ -0,0 +1,29 @@
+{ lib, fetchFromGitHub }:
+
+let
+  version = "1.6";
+in fetchFromGitHub {
+  name = "work-sans-${version}";
+
+  owner = "weiweihuanghuang";
+  repo = "Work-Sans";
+  rev = "v${version}";
+
+  postFetch = ''
+    tar xf $downloadedFile --strip=1
+    install -m444 -Dt $out/share/fonts/opentype/ fonts/desktop/*.otf
+    install -m444 -Dt $out/share/fonts/truetype/ fonts/webfonts/ttf/*.ttf
+    install -m444 -Dt $out/share/fonts/woff/     fonts/webfonts/woff/*.woff
+    install -m444 -Dt $out/share/fonts/woff2/    fonts/webfonts/woff2/*.woff2
+  '';
+
+  sha256 = "01kjidk6zv80rqxapcdwhd9wxzrjfc6lj4gkf6dwa4sskw5x3b8a";
+
+  meta = with lib; {
+    description = "A grotesque sans";
+    homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
+    license = licenses.ofl;
+    maintainers = [ maintainers.marsam ];
+    platforms = platforms.all;
+  };
+}