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
43
pkgs/development/python-modules/libarcus/default.nix
Normal file
43
pkgs/development/python-modules/libarcus/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, buildPythonPackage, python, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake, sip_4, protobuf, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libarcus";
|
||||
version = "4.12.0";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ultimaker";
|
||||
repo = "libArcus";
|
||||
rev = version;
|
||||
sha256 = "sha256-X33ptwYj9YkVWqUDPP+Ic+hoIb+rwsLdQXvHLA9z+3w=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build against protobuf 3.18+
|
||||
# https://github.com/Ultimaker/libArcus/issues/121
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/coryan/vcpkg/f69b85aa403b04e7d442c90db3418d484e44024f/ports/arcus/0001-fix-protobuf-deprecated.patch";
|
||||
sha256 = "0bqj7pxzpwsamknd6gadj419x6mwx8wnlfzg4zqn6cax3cmasjb2";
|
||||
})
|
||||
];
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
propagatedBuildInputs = [ sip_4 ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Communication library between internal components for Ultimaker software";
|
||||
homepage = "https://github.com/Ultimaker/libArcus";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar gebner ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue