diff options
Diffstat (limited to 'pkgs/data/fonts/source-sans/default.nix')
-rw-r--r-- | pkgs/data/fonts/source-sans/default.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/data/fonts/source-sans/default.nix b/pkgs/data/fonts/source-sans/default.nix index c16d0d2b8b4..94df27765ee 100644 --- a/pkgs/data/fonts/source-sans/default.nix +++ b/pkgs/data/fonts/source-sans/default.nix @@ -1,19 +1,13 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "3.046"; -in fetchzip { +in (fetchzip { name = "source-sans-${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 = "1wxdinnliq0xqbjrs0sqykwaggkmyqawfq862d9xn05g1pnxda94"; meta = with lib; { @@ -23,4 +17,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 + ''; +}) |