nixpkgs/pkgs/data/fonts/fontconfig-penultimate/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

24 lines
640 B
Nix

{ lib, fetchzip
, version ? "0.3.5"
, sha256 ? "1gfgl7qimp76q4z0nv55vv57yfs4kscdr329np701k0xnhncwvrk"
}:
fetchzip {
name = "fontconfig-penultimate-${version}";
url = "https://github.com/ttuegel/fontconfig-penultimate/archive/${version}.zip";
inherit sha256;
postFetch = ''
mkdir -p $out/etc/fonts/conf.d
unzip -j $downloadedFile \*.conf -d $out/etc/fonts/conf.d
'';
meta = with lib; {
homepage = https://github.com/ttuegel/fontconfig-penultimate;
description = "Sensible defaults for Fontconfig";
license = licenses.asl20;
maintainers = [ maintainers.ttuegel ];
platforms = platforms.all;
};
}