summary refs log tree commit diff
path: root/pkgs/data/fonts/raleway
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
commit7f42f2852980166a4488c82e666253b0d30c01e5 (patch)
treee0889d396f126569b7e46410e3c6cef8ae3c7758 /pkgs/data/fonts/raleway
parent99f5676ba0a0c2d7605b63b2dd1b146c384f42dd (diff)
downloadnixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.gz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.bz2
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.lz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.xz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.zst
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.zip
treewide: convert 43 fonts to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/fonts/raleway')
-rw-r--r--pkgs/data/fonts/raleway/default.nix26
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/data/fonts/raleway/default.nix b/pkgs/data/fonts/raleway/default.nix
index ddded71a6fa..935fde722ed 100644
--- a/pkgs/data/fonts/raleway/default.nix
+++ b/pkgs/data/fonts/raleway/default.nix
@@ -1,21 +1,23 @@
-{ lib, fetchFromGitHub }:
+{ lib, stdenvNoCC, fetchFromGitHub }:
 
-let
+stdenvNoCC.mkDerivation {
+  pname = "raleway";
   version = "2016-08-30";
-in fetchFromGitHub {
-  name = "raleway-${version}";
 
-  owner = "impallari";
-  repo = "Raleway";
-  rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a";
+  src = fetchFromGitHub {
+    owner = "impallari";
+    repo = "Raleway";
+    rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a";
+    hash = "sha256-mcIpE+iqG6M43I5TT95oV+5kNgphunmyxC+Jaj0JysQ=";
+  };
+
+  installPhase = ''
+    runHook preInstall
 
-  postFetch = ''
-    tar xf $downloadedFile --strip=1
     find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \;
-    cp *.txt *.md -d $out
-  '';
 
-  sha256 = "16jr7drqg2wib2q48ajlsa7rh1jxjibl1wd4rjndi49vfl463j60";
+    runHook postInstall
+  '';
 
   meta = {
     description = "Raleway is an elegant sans-serif typeface family";