diff options
author | Scott Worley <scottworley@scottworley.com> | 2022-09-29 00:52:55 -0700 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-01-17 01:03:11 +0200 |
commit | af89d3a2be6f70edb187dd817377d6c4360134fa (patch) | |
tree | 432c3ff8a5c9e40ac5fef7d6387e12db60310cc9 /pkgs/data/fonts/source-sans-pro | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) | |
download | nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.gz nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.bz2 nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.lz nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.xz nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.zst nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.zip |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/source-sans-pro')
-rw-r--r-- | pkgs/data/fonts/source-sans-pro/default.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/data/fonts/source-sans-pro/default.nix b/pkgs/data/fonts/source-sans-pro/default.nix index 879f5083e23..382c20aa976 100644 --- a/pkgs/data/fonts/source-sans-pro/default.nix +++ b/pkgs/data/fonts/source-sans-pro/default.nix @@ -1,3 +1,4 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: # Source Sans Pro got renamed to Source Sans 3 (see @@ -6,18 +7,11 @@ # with older documents/templates/etc. let version = "3.006"; -in fetchzip { +in (fetchzip { name = "source-sans-pro-${version}"; url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip"; - postFetch = '' - mkdir -p $out/share/fonts/{opentype,truetype,variable} - unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype - unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype - unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable - ''; - sha256 = "sha256-uWr/dFyLF65v0o6+oN/3RQoe4ziPspzGB1rgiBkoTYY="; meta = with lib; { @@ -27,4 +21,11 @@ in fetchzip { platforms = platforms.all; maintainers = with maintainers; [ ttuegel ]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts/{opentype,truetype,variable} + unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype + unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype + unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable + ''; +}) |