summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-01-17 00:57:33 +0200
committerGitHub <noreply@github.com>2023-01-17 00:57:33 +0200
commitea27fb07efe68cb426593a4d7c2efe469621021d (patch)
tree923fa4bee0d06fb8e466a042437dfd63d8b1bb09
parente24b481e0a29f76d53c9962a48b2ab4a88498f00 (diff)
parentd5ca8029a527e3442fc9125bf57c349935940836 (diff)
downloadnixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar.gz
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar.bz2
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar.lz
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar.xz
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.tar.zst
nixpkgs-ea27fb07efe68cb426593a4d7c2efe469621021d.zip
Merge pull request #210833 from Vonfry/update/rec-1.085
-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 142f84ba7d9..f634a8c5343 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/";