oxygenfonts: minor cleanups

Change installation directory and some minor code simplifications.
This commit is contained in:
Robert Helgesson 2016-08-28 21:18:10 +02:00
parent d22bb26fb9
commit a4524b4bfb
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -1,12 +1,7 @@
{ stdenv, fetchFromGitHub }:
let
pname = "oxygenfonts";
version = "20160825";
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
stdenv.mkDerivation rec {
name = "oxygenfonts-20160825";
src = fetchFromGitHub {
owner = "vernnobile";
@ -18,15 +13,14 @@ in
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts/truetype/${pname}
cp OxygenSans-version-0.4/*/*.ttf $out/share/fonts/truetype/${pname}
cp Oxygen-Monospace/*.ttf $out/share/fonts/truetype/${pname}
mkdir -p $out/share/fonts/truetype/
cp OxygenSans-version-0.4/*/*.ttf $out/share/fonts/truetype/
cp Oxygen-Monospace/*.ttf $out/share/fonts/truetype/
'';
meta = with stdenv.lib; {
description = "Desktop/gui font for integrated use with the KDE desktop";
longDescription =
''
longDescription = ''
Oxygen Font is a font family originally aimed as a desktop/gui
font for integrated use with the KDE desktop.