about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVonfry <mail@vonfry.name>2023-01-15 14:49:36 +0800
committerVonfry <mail@vonfry.name>2023-01-15 14:54:41 +0800
commitd5ca8029a527e3442fc9125bf57c349935940836 (patch)
tree9ed7e8d9df99aa45411efce44a1afbe4beb3128a
parente8e9febf8bc4e90f1b38d3b22a704d347a99a74a (diff)
recursive: 1.084 -> 1.085
This commit also updates postFetch due to the change of interface of fetchzip
-rw-r--r--pkgs/data/fonts/recursive/default.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/data/fonts/recursive/default.nix b/pkgs/data/fonts/recursive/default.nix
index 142f84ba7d9eb..f634a8c5343af 100644
--- a/pkgs/data/fonts/recursive/default.nix
+++ b/pkgs/data/fonts/recursive/default.nix
@@ -1,20 +1,19 @@
-{ lib, fetchzip }:
+{ lib, fetchzip, stdenvNoCC }:
 
-let
-  version = "1.084";
-in
-fetchzip {
-  name = "recursive-${version}";
+stdenvNoCC.mkDerivation rec {
+  pname = "recursive";
+  version = "1.085";
 
-  url = "https://github.com/arrowtype/recursive/releases/download/v${version}/ArrowType-Recursive-${version}.zip";
+  src = fetchzip {
+    url = "https://github.com/arrowtype/recursive/releases/download/v${version}/ArrowType-Recursive-${version}.zip";
+    sha256 = "sha256-hnGnKnRoQN8vFStW8TjLrrTL1dWsthUEWxfaGF0b0vM=";
+  };
 
-  postFetch = ''
-    mkdir -p $out/share/fonts/
-    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
-    unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
+  installPhase = ''
+    install -D -t $out/share/fonts/opentype/ $(find $src -type f -name '*.otf')
+    install -D -t $out/share/fonts/truetype/ $(find $src -type f -name '*.ttf')
   '';
 
-  sha256 = "sha256-YL09RVU9pgP0/aGRKECHzd5t1VmNDPtOFcRygWqIisg=";
 
   meta = with lib; {
     homepage = "https://recursive.design/";