Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e426613174f2
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 984285355a57
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 23, 2018

  1. sarasa-gothic: rewrite: TTC and fixed-output

    Rewritten to use TTC archive instead of the TTF one, which drastically
    shrinks the closure size. (2.2G to 212M on v0.6.0.) It's also now
    fixed-output.
    dramforever committed Nov 23, 2018
    Copy the full SHA
    95a56e4 View commit details

Commits on Nov 24, 2018

  1. Merge pull request #50974 from dramforever/sarasa-gothic-ttc

    sarasa-gothic: rewrite: TTC and fixed-output
    Mic92 authored Nov 24, 2018
    Copy the full SHA
    9842853 View commit details
Showing with 12 additions and 15 deletions.
  1. +12 −15 pkgs/data/fonts/sarasa-gothic/default.nix
27 changes: 12 additions & 15 deletions pkgs/data/fonts/sarasa-gothic/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{ stdenv, fetchurl, p7zip }:

stdenv.mkDerivation rec {
let
version = "0.6.0";
name = "sarasa-gothic-${version}";
sha256 = "08g3kzplp3v8kvni1vzl73fgh03xgfl8pwqyj7vwjihjdr1xfjyz";
in fetchurl rec {
inherit sha256;

package = fetchurl {
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttf-${version}.7z";
sha256 = "00kyx03lpgycxaw0cyx96hhrx8gwkcmy3qs35q7r09y60vg5i0nv";
};
name = "sarasa-gothic-${version}";

nativeBuildInputs = [ p7zip ];
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";

unpackPhase = ''
7z x $package
'';
recursiveHash = true;
downloadToTemp = true;

installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
postFetch = ''
${p7zip}/bin/7z x $downloadedFile
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
'';

meta = with stdenv.lib; {
@@ -26,7 +25,5 @@ stdenv.mkDerivation rec {
license = licenses.ofl;
maintainers = [ maintainers.ChengCat ];
platforms = platforms.all;
# large package, mainly i/o bound
hydraPlatforms = [];
};
}