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/myrica | |
parent | 99f5676ba0a0c2d7605b63b2dd1b146c384f42dd (diff) |
treewide: convert 43 fonts to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/fonts/myrica')
-rw-r--r-- | pkgs/data/fonts/myrica/default.nix | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/pkgs/data/fonts/myrica/default.nix b/pkgs/data/fonts/myrica/default.nix index c36292eb00141..5d8aa43a5b21c 100644 --- a/pkgs/data/fonts/myrica/default.nix +++ b/pkgs/data/fonts/myrica/default.nix @@ -1,18 +1,24 @@ -{ lib, fetchFromGitHub }: +{ lib, stdenvNoCC, fetchFromGitHub }: -fetchFromGitHub { - name = "myrica-2.011.20160403"; +stdenvNoCC.mkDerivation { + pname = "myrica"; + version = "2.011.20160403"; - owner = "tomokuni"; - repo = "Myrica"; - # commit does not exist on any branch on the target repository - rev = "b737107723bfddd917210f979ccc32ab3eb6dc20"; - sha256 = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12"; + src = fetchFromGitHub { + owner = "tomokuni"; + repo = "Myrica"; + # commit does not exist on any branch on the target repository + rev = "b737107723bfddd917210f979ccc32ab3eb6dc20"; + hash = "sha256-kx+adbN2DsO81KJFt+FGAPZN+1NpE9xiagKZ4KyaJV0="; + }; + + installPhase = '' + runHook preInstall - postFetch = '' - tar --strip-components=1 -xzvf $downloadedFile mkdir -p $out/share/fonts/truetype cp product/*.TTC $out/share/fonts/truetype + + runHook postInstall ''; meta = with lib; { |