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
|
|
@ -0,0 +1,58 @@
|
|||
{ autoPatchelfHook
|
||||
, dpkg
|
||||
, fetchurl
|
||||
, lib
|
||||
, libcxx
|
||||
, stdenv
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "edgetpu-compiler";
|
||||
version = "15.0";
|
||||
|
||||
src = fetchurl rec {
|
||||
url = "https://packages.cloud.google.com/apt/pool/${pname}_${version}_amd64_${sha256}.deb";
|
||||
sha256 = "ce03822053c2bddbb8640eaa988396ae66f9bc6b9d6d671914acd1727c2b445a";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
dpkg
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libcxx
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir bin pkg
|
||||
|
||||
dpkg -x $src pkg
|
||||
|
||||
rm -r pkg/usr/share/lintian
|
||||
|
||||
cp pkg/usr/bin/edgetpu_compiler_bin/edgetpu_compiler ./bin
|
||||
cp -r pkg/usr/share .
|
||||
|
||||
rm -r pkg
|
||||
'';
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -r ./{bin,share} $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command line tool that compiles a TensorFlow Lite model into an Edge TPU compatible file.";
|
||||
homepage = "https://coral.ai/docs/edgetpu/compiler";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ cpcloud ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, stdenv, fetchurl, cmake, boost }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ispike";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ispike/${pname}-${version}.tar.gz";
|
||||
sha256 = "0khrxp43bi5kisr8j4lp9fl4r5marzf7b4inys62ac108sfb28lp";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ boost ];
|
||||
|
||||
meta = {
|
||||
description = "Spiking neural interface between iCub and a spiking neural simulator";
|
||||
homepage = "https://sourceforge.net/projects/ispike/";
|
||||
license = lib.licenses.lgpl3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.nico202 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue