diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-01-30 10:25:57 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-01-30 10:25:57 +0100 |
commit | 7f42f2852980166a4488c82e666253b0d30c01e5 (patch) | |
tree | e0889d396f126569b7e46410e3c6cef8ae3c7758 /pkgs/data/fonts/gelasio | |
parent | 99f5676ba0a0c2d7605b63b2dd1b146c384f42dd (diff) |
treewide: convert 43 fonts to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/fonts/gelasio')
-rw-r--r-- | pkgs/data/fonts/gelasio/default.nix | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/pkgs/data/fonts/gelasio/default.nix b/pkgs/data/fonts/gelasio/default.nix index c8cf655a18cfb..cea8e439d36bf 100644 --- a/pkgs/data/fonts/gelasio/default.nix +++ b/pkgs/data/fonts/gelasio/default.nix @@ -1,18 +1,25 @@ -{ lib, fetchFromGitHub }: - -let - version = "unstable-2018-08-12"; -in fetchFromGitHub { - name = "gelasio-${version}"; - owner = "SorkinType"; - repo = "Gelasio"; - rev = "5bced461d54bcf8e900bb3ba69455af35b0d2ff1"; - sha256 = "0dfskz2vpwsmd88rxqsxf0f01g4f2hm6073afcm424x5gc297n39"; - - postFetch = '' - tar xf $downloadedFile --strip=1 +{ lib, stdenvNoCC, fetchFromGitHub }: + +stdenvNoCC.mkDerivation { + pname = "gelasio"; + version = "unstable-2022-06-09"; + + src = fetchFromGitHub { + owner = "SorkinType"; + repo = "Gelasio"; + rev = "a75c6d30a35f74cdbaea1813bdbcdb64bb11d3d5"; + hash = "sha256-ncm0lSDPPPREdxTx3dGl6OGBn4FGAjFTlQpA6oDCdMI="; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/fonts/truetype - cp *.ttf $out/share/fonts/truetype/ + cp fonts/ttf/*.ttf $out/share/fonts/truetype/ + + runHook postInstall ''; meta = with lib; { |