diff options
author | Minijackson <minijackson@riseup.net> | 2023-01-22 11:20:50 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-01-22 12:38:59 +0100 |
commit | b3f58e84f5934d94f393b5d2f212a1a352ebded4 (patch) | |
tree | a282e697e734a532fb6d578f47e57a35c04e8d78 /pkgs/data | |
parent | 3e68671ed0b6599776a2f54926942f927905fd4f (diff) |
tenderness: migrate to stdenvNoCC, fix download link
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/tenderness/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/data/fonts/tenderness/default.nix b/pkgs/data/fonts/tenderness/default.nix index 09ea566e73821..40b284c2549f4 100644 --- a/pkgs/data/fonts/tenderness/default.nix +++ b/pkgs/data/fonts/tenderness/default.nix @@ -1,27 +1,32 @@ -{ lib, fetchzip }: +{ lib, stdenvNoCC, fetchzip }: let majorVersion = "0"; minorVersion = "601"; - pname = "tenderness"; in +stdenvNoCC.mkDerivation (self: { + pname = "tenderness"; + version = "${majorVersion}.${minorVersion}"; + + src = fetchzip { + url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip"; + hash = "sha256-bwJKW+rY7/r2pBCSA6HYlaRMsI/U8UdW2vV4tmYuJww="; + stripRoot = false; + }; -fetchzip { - name = "${pname}-font-${majorVersion}.${minorVersion}"; + installPhase = '' + runHook preInstall - url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip"; - sha256 = "0d88l5mzq0k63zsmb8d5w3hfqxy04vpv4j0j8nmj1xv6kikhhybh"; + install -D -m444 -t $out/share/fonts/opentype $src/*.otf - postFetch = '' - mkdir -p $out/share/fonts/opentype/${pname} - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname} + runHook postInstall ''; meta = with lib; { - homepage = "http://dotcolon.net/font/${pname}/"; + homepage = "http://dotcolon.net/font/${self.pname}/"; description = "Serif font designed by Sora Sagano with old-style figures"; platforms = platforms.all; - maintainers = with maintainers; [ leenaars ]; + maintainers = with maintainers; [ leenaars minijackson ]; license = licenses.ofl; }; -} +}) |