nixpkgs/pkgs/data/fonts/ttf-bitstream-vera/default.nix
Daniel Schaefer b85ccbac54 treewide: Add passthru.updateScript to gnome pkgs
`updateScript` lets us update packages automatically.
For packages that are hosted on the gnome mirror it's very easy to add
that. Inspired by https://github.com/NixOS/nixpkgs/issues/36150
2019-05-12 22:23:48 +02:00

24 lines
516 B
Nix

{ stdenv, fetchzip }:
let
pname = "ttf-bitstream-vera";
version = "1.10";
in
fetchzip rec {
name = "${pname}-${version}";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.bz2";
postFetch = ''
tar -xjf $downloadedFile --strip-components=1
fontDir=$out/share/fonts/truetype
mkdir -p $fontDir
cp *.ttf $fontDir
'';
sha256 = "179hal4yi3367jg8rsvqx6h2w4s0kn9zzrv8c47sslyg28g39s4m";
meta = {
platforms = stdenv.lib.platforms.unix;
};
}