3
0
Fork 0
forked from mirrors/nixpkgs

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.mkDerivation rec {
name = "ttf-envy-code-r";
let
pname = "ttf-envy-code-r";
version = "PR7";
in
stdenv.mkDerivation rec {
name = "${pname}-0.${version}";
src = fetchurl {
url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip";
@ -15,14 +17,14 @@ stdenv.mkDerivation rec {
for f in *.ttf; do
install -Dm 644 "$f" "$out/share/fonts/truetype/$f"
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; {
homepage = http://damieng.com/blog/tag/envy-code-r;
description = "Free scalable coding font by DamienG";
license = licenses.unfree;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.lyt ];
};
}