uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/data/fonts/unscii/default.nix
Normal file
71
pkgs/data/fonts/unscii/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib, stdenv, fetchurl, perl, bdftopcf
|
||||
, fontforge, SDL, SDL_image, mkfontscale
|
||||
}:
|
||||
|
||||
let
|
||||
perlenv = perl.withPackages (p: with p; [
|
||||
TextCharWidth
|
||||
]);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "unscii";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pelulamu.net/${pname}/${pname}-${version}-src.tar.gz";
|
||||
sha256 = "0qcxcnqz2nlwfzlrn115kkp3n8dd7593h762vxs6vfqm13i39lq1";
|
||||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
[ perlenv
|
||||
bdftopcf fontforge SDL SDL_image
|
||||
mkfontscale
|
||||
];
|
||||
|
||||
# Fixes shebang -> wrapper problem on Darwin
|
||||
postPatch = ''
|
||||
for perltool in *.pl; do
|
||||
substituteInPlace Makefile \
|
||||
--replace "./$perltool" "${perlenv}/bin/perl ./$perltool"
|
||||
done
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
# compress pcf fonts
|
||||
gzip -9 -n *.pcf
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
# install fonts for use in X11 and GTK applications
|
||||
install -m444 -Dt "$out/share/fonts/misc" *.pcf.gz
|
||||
install -m444 -Dt "$out/share/fonts/opentype" *.otf
|
||||
mkfontdir "$out/share/fonts/misc"
|
||||
mkfontscale "$out/share/fonts/opentype"
|
||||
|
||||
# install other formats in $extra
|
||||
install -m444 -Dt "$extra/share/fonts/truetype" *.ttf
|
||||
install -m444 -Dt "$extra/share/fonts/svg" *.svg
|
||||
install -m444 -Dt "$extra/share/fonts/web" *.woff
|
||||
install -m444 -Dt "$extra/share/fonts/misc" *.hex
|
||||
mkfontscale "$extra"/share/fonts/*
|
||||
'';
|
||||
|
||||
outputs = [ "out" "extra" ];
|
||||
|
||||
meta = {
|
||||
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 = [ lib.maintainers.raskin ];
|
||||
homepage = "http://pelulamu.net/unscii/";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue