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
54
pkgs/data/fonts/efont-unicode/default.nix
Normal file
54
pkgs/data/fonts/efont-unicode/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchzip, libfaketime, xorg }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "efont-unicode";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
|
||||
sha256 = "0bib3jgikq8s1m96imw4mlgbl5cbq1bs5sqig74s2l2cdfx3jaqc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with xorg;
|
||||
[ libfaketime bdftopcf fonttosfnt mkfontscale ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
# convert bdf fonts to pcf
|
||||
for f in *.bdf; do
|
||||
bdftopcf -t -o "''${f%.bdf}.pcf" "$f"
|
||||
done
|
||||
gzip -n -9 *.pcf
|
||||
|
||||
# convert bdf fonts to otb
|
||||
for f in *.bdf; do
|
||||
faketime -f "1970-01-01 00:00:01" \
|
||||
fonttosfnt -v -m 2 -o "''${f%.bdf}.otb" "$f"
|
||||
done
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
dir=share/fonts/misc
|
||||
install -D -m 644 -t "$out/$dir" *.otb *.pcf.gz
|
||||
install -D -m 644 -t "$bdf/$dir" *.bdf
|
||||
mkfontdir "$out/$dir"
|
||||
mkfontdir "$bdf/$dir"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputs = [ "out" "bdf" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The /efont/ Unicode bitmap font";
|
||||
homepage = "http://openlab.ring.gr.jp/efont/unicode/";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.ncfavier ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue