mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
unscii: init at 1.1
This commit is contained in:
parent
1471426749
commit
fd2ff58d16
36
pkgs/data/fonts/unscii/default.nix
Normal file
36
pkgs/data/fonts/unscii/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{stdenv, fetchurl, perl, bdftopcf, perlPackages, fontforge, SDL, SDL_image}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "unscii";
|
||||
version = "1.1";
|
||||
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
|
||||
src = fetchurl {
|
||||
url = "http://pelulamu.net/${pname}/${name}-src.tar.gz";
|
||||
sha256 = "0qcxcnqz2nlwfzlrn115kkp3n8dd7593h762vxs6vfqm13i39lq1";
|
||||
};
|
||||
buildInputs = [];
|
||||
nativeBuildInputs = [perl bdftopcf perlPackages.TextCharWidth fontforge
|
||||
SDL SDL_image];
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p "$out/share/fonts"/{truetype,opentype,web,svg}
|
||||
cp *.hex "$out/share/fonts/"
|
||||
cp *.pcf "$out/share/fonts/"
|
||||
cp *.ttf "$out/share/fonts/truetype"
|
||||
cp *.otf "$out/share/fonts/opentype"
|
||||
cp *.svg "$out/share/fonts/svg"
|
||||
cp *.woff "$out/share/fonts/web"
|
||||
'';
|
||||
meta = {
|
||||
inherit version;
|
||||
description = ''Bitmapped character-art-friendly Unicode fonts'';
|
||||
# Basically GPL2+ with font exception — because of the Unifont-augmented
|
||||
# version. The reduced version is public domain.
|
||||
license = http://unifoundry.com/LICENSE.txt;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
homepage = "http://pelulamu.net/unscii/";
|
||||
};
|
||||
}
|
@ -12094,6 +12094,8 @@ in
|
||||
|
||||
unifont_upper = callPackage ../data/fonts/unifont_upper { };
|
||||
|
||||
unscii = callPackage ../data/fonts/unscii { };
|
||||
|
||||
vanilla-dmz = callPackage ../data/icons/vanilla-dmz { };
|
||||
|
||||
vistafonts = callPackage ../data/fonts/vista-fonts { };
|
||||
|
Loading…
Reference in New Issue
Block a user