nixpkgs/pkgs/data/fonts/jost/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
694 B
Nix
Raw Normal View History

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{lib, fetchzip}:
2019-06-10 06:02:28 +00:00
let
version = "3.5";
in (fetchzip {
2019-06-10 06:02:28 +00:00
name = "jost-${version}";
url = "https://github.com/indestructible-type/Jost/releases/download/${version}/Jost.zip";
sha256="0l78vhmbsyfmrva5wc76pskhxqryyg8q5xddpj9g5wqsddy525dq";
2019-06-10 06:02:28 +00:00
meta = with lib; {
homepage = "https://github.com/indestructible-type/Jost";
2019-06-10 06:02:28 +00:00
description = "A sans serif font by Indestructible Type";
license = licenses.ofl;
maintainers = [ maintainers.ar1a ];
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
})