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
44
pkgs/development/python-modules/dbus/default.nix
Normal file
44
pkgs/development/python-modules/dbus/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchPypi, buildPythonPackage, python, pkg-config, dbus, dbus-glib, isPyPy
|
||||
, ncurses, pygobject3, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dbus-python";
|
||||
version = "1.2.18";
|
||||
format = "other";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0q3jrw515z98mqdk9x822nd95rky455zz9876f1nqna5igkd3gcj";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-includedir.patch
|
||||
];
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
|
||||
MACOSX_DEPLOYMENT_TARGET=10.16
|
||||
'' else null;
|
||||
|
||||
configureFlags = [
|
||||
"PYTHON=${python.pythonForBuild.interpreter}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ dbus dbus-glib ]
|
||||
# My guess why it's sometimes trying to -lncurses.
|
||||
# It seems not to retain the dependency anyway.
|
||||
++ lib.optional (! python ? modules) ncurses;
|
||||
|
||||
doCheck = isPy3k;
|
||||
checkInputs = [ dbus.out pygobject3 ];
|
||||
|
||||
meta = {
|
||||
description = "Python DBus bindings";
|
||||
license = lib.licenses.mit;
|
||||
platforms = dbus.meta.platforms;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
--- a/dbus-python.pc.in
|
||||
+++ b/dbus-python.pc.in
|
||||
@@ -9,4 +9,4 @@
|
||||
Description: Python bindings for D-Bus
|
||||
Requires: dbus-1 >= 1.0
|
||||
Version: @VERSION@
|
||||
-Cflags: -I${includedir}
|
||||
+Cflags: -I${includedir}/dbus-1.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue