3
0
Fork 0
forked from mirrors/nixpkgs

overpass: 2.1 -> 3.0.2

This commit is contained in:
Robert Helgesson 2017-01-24 23:12:49 +01:00
parent e832d380de
commit 4a914f2f9f
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -1,12 +1,14 @@
{ stdenv, fetchurl, unzip }:
{ stdenv, fetchFromGitHub, unzip }:
stdenv.mkDerivation rec {
name = "overpass-${version}";
version = "2.1";
version = "3.0.2";
src = fetchurl {
url = "https://github.com/RedHatBrand/overpass/releases/download/2.1/overpass-fonts-ttf-2.1.zip";
sha256 = "1kd7vbqffp5988j3p4zxkxajdmfviyv4y6rzk7jazg81xcsxicwf";
src = fetchFromGitHub {
owner = "RedHatBrand";
repo = "Overpass";
rev = version;
sha256 = "1bgmnhdfmp4rycyadcnzw62vkvn63nn29pq9vbjf4c9picvl8ah6";
};
nativeBuildInputs = [ unzip ];
@ -15,8 +17,8 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/share/doc/${name}
mkdir -p $out/share/fonts/truetype
cp -v *.ttf $out/share/fonts/truetype
mkdir -p $out/share/fonts/opentype
cp -v "desktop-fonts/"*"/"*.otf $out/share/fonts/opentype
cp -v LICENSE.md README.md $out/share/doc/${name}
'';