ttf-envy-code-r: nitpick changes

- start version with 0. to get actual version semantics
- better location for readme.txt
- widen platforms to unix
This commit is contained in:
Vladimír Čunát 2017-07-08 10:18:53 +02:00
parent 208edec09a
commit 5172fd68d3
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,8 +1,10 @@
{ stdenv, fetchurl, unzip }: { stdenv, fetchurl, unzip }:
let
stdenv.mkDerivation rec { pname = "ttf-envy-code-r";
name = "ttf-envy-code-r";
version = "PR7"; version = "PR7";
in
stdenv.mkDerivation rec {
name = "${pname}-0.${version}";
src = fetchurl { src = fetchurl {
url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip"; url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip";
@ -15,14 +17,14 @@ stdenv.mkDerivation rec {
for f in *.ttf; do for f in *.ttf; do
install -Dm 644 "$f" "$out/share/fonts/truetype/$f" install -Dm 644 "$f" "$out/share/fonts/truetype/$f"
done done
install -Dm 644 Read\ Me.txt "$out/share/doc/readme.txt" install -Dm 644 Read\ Me.txt "$out/share/doc/${pname}/readme.txt"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://damieng.com/blog/tag/envy-code-r; homepage = http://damieng.com/blog/tag/envy-code-r;
description = "Free scalable coding font by DamienG"; description = "Free scalable coding font by DamienG";
license = licenses.unfree; license = licenses.unfree;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = [ maintainers.lyt ]; maintainers = [ maintainers.lyt ];
}; };
} }