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
49
pkgs/data/fonts/rictydiminished-with-firacode/default.nix
Normal file
49
pkgs/data/fonts/rictydiminished-with-firacode/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fontforge, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rictydiminished-with-firacode";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hakatashi";
|
||||
repo = "RictyDiminished-with-FiraCode";
|
||||
rev = version;
|
||||
sha256 = "sha256-twh3yLAM4MUjWzSDNmo8gNIRf01hieXeOS334sNdFk4=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Make builds more reproducible
|
||||
substituteInPlace apply-feature.py --replace \
|
||||
'ricty = ttLib.TTFont(options.in_font)' \
|
||||
'ricty = ttLib.TTFont(options.in_font, recalcTimestamp=False)'
|
||||
substituteInPlace build.py --replace \
|
||||
'datetime.date.today()' \
|
||||
'datetime.date.fromtimestamp(float(os.environ["SOURCE_DATE_EPOCH"]))'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -m444 -Dt $out/share/fonts/rictydiminished-with-firacode *.ttf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
(python3.withPackages (ps: [
|
||||
ps.jinja2
|
||||
ps.fonttools
|
||||
ps.fontforge
|
||||
]))
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/hakatashi/RictyDiminished-with-FiraCode";
|
||||
description = "The best Japanese programming font meets the awesome ligatures of Firacode";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ mt-caret ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue