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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ lib
, stdenv
, ocamlPackages
, fetchFromGitHub
, makeWrapper
, python3
}:
ocamlPackages.buildDunePackage rec {
pname = "flitter";
# request to tag releases: https://github.com/alexozer/flitter/issues/34
version = "unstable-2020-10-05";
useDune2 = true;
src = fetchFromGitHub {
owner = "alexozer";
repo = "flitter";
rev = "666c5483bc93efa6d01e0b7a927461269f8e14de";
sha256 = "1k3m7bjq5yrrq7vhnbdykni65dsqhq6knnv9wvwq3svb3n07z4w3";
};
# https://github.com/alexozer/flitter/issues/28
postPatch = ''
for f in src/colors.ml src/duration.ml src/event_loop.ml src/splits.ml; do
substituteInPlace "$f" \
--replace 'Unix.gettimeofday' 'Caml_unix.gettimeofday'
done
'';
nativeBuildInputs = [
makeWrapper
];
buildInputs = with ocamlPackages; [
core
lwt_ppx
sexp_pretty
color
notty
];
postInstall = ''
wrapProgram $out/bin/flitter \
--prefix PATH : "${python3.withPackages (pp: [ pp.pynput ])}/bin"
'';
meta = with lib; {
description = "A Livesplit-inspired speedrunning split timer for Linux/macOS terminal";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
homepage = "https://github.com/alexozer/flitter";
platforms = platforms.unix;
};
}