3
0
Fork 0
forked from mirrors/nixpkgs

arkpandora_ttf: use mkDerivation

This commit is contained in:
Robin Gloster 2016-01-24 15:50:54 +00:00
parent 96350a9ec9
commit 1af99b8dad
2 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,8 @@
args : with args;
let version = lib.attrByPath ["version"] "2.04" args; in
rec {
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "arkpandora-${version}";
version = "2.04";
src = fetchurl {
urls = [
"ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ttf-arkpandora-${version}.tgz"
@ -10,13 +12,11 @@ rec {
sha256 = "16mfxwlgn6vs3xn00hha5dnmz6bhjiflq138y4zcq3yhk0y9bz51";
};
buildInputs = [];
configureFlags = [];
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
/* doConfigure should be specified separately */
phaseNames = ["doUnpack" "installFonts"];
name = "arkpandora-" + version;
meta = {
description = "Font, metrically identical to Arial and Times New Roman";
};

View file

@ -10820,7 +10820,7 @@ let
anonymousPro = callPackage ../data/fonts/anonymous-pro { };
arkpandora_ttf = builderDefsPackage (callPackage ../data/fonts/arkpandora) { };
arkpandora_ttf = callPackage ../data/fonts/arkpandora { };
aurulent-sans = callPackage ../data/fonts/aurulent-sans { };