3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/overpass/default.nix

33 lines
822 B
Nix
Raw Normal View History

2017-01-24 22:12:49 +00:00
{ stdenv, fetchFromGitHub, unzip }:
2016-10-14 22:07:04 +01:00
stdenv.mkDerivation rec {
name = "overpass-${version}";
2017-01-24 22:12:49 +00:00
version = "3.0.2";
2016-10-14 22:07:04 +01:00
2017-01-24 22:12:49 +00:00
src = fetchFromGitHub {
owner = "RedHatBrand";
repo = "Overpass";
rev = version;
sha256 = "1bgmnhdfmp4rycyadcnzw62vkvn63nn29pq9vbjf4c9picvl8ah6";
2016-10-14 22:07:04 +01:00
};
nativeBuildInputs = [ unzip ];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/doc/${name}
2017-01-24 22:12:49 +00:00
mkdir -p $out/share/fonts/opentype
cp -v "desktop-fonts/"*"/"*.otf $out/share/fonts/opentype
2016-10-14 22:07:04 +01:00
cp -v LICENSE.md README.md $out/share/doc/${name}
'';
meta = with stdenv.lib; {
homepage = http://overpassfont.org/;
description = "Font heavily inspired by Highway Gothic";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.rycee ];
};
}