diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-03-03 02:34:08 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-03-03 02:39:30 +0100 |
commit | c28848a3b3b15417290fbfa7f3ea950b43920fad (patch) | |
tree | bf9dd2fc1b6b446c90711cf4b7c7a265b0c8f91f /pkgs/development/python-modules/dbus | |
parent | 1eab40211ef313848cd3cd7d17cd8c4917e7df39 (diff) | |
download | nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar.gz nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar.bz2 nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar.lz nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar.xz nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.tar.zst nixpkgs-c28848a3b3b15417290fbfa7f3ea950b43920fad.zip |
pythonPackages.dbus-python: fix includedir in pkg-config
Diffstat (limited to 'pkgs/development/python-modules/dbus')
-rw-r--r-- | pkgs/development/python-modules/dbus/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/python-modules/dbus/fix-includedir.patch | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/dbus/default.nix b/pkgs/development/python-modules/dbus/default.nix index 13465f1af2c..f686f067e7a 100644 --- a/pkgs/development/python-modules/dbus/default.nix +++ b/pkgs/development/python-modules/dbus/default.nix @@ -6,12 +6,16 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa version = "1.2.4"; format = "other"; + outputs = [ "out" "dev" "doc" ]; + src = fetchurl { url = "http://dbus.freedesktop.org/releases/dbus-python/${pname}-${version}.tar.gz"; sha256 = "1k7rnaqrk7mdkg0k6n2jn3d1mxsl7s3i07g5a8va5yvl3y3xdwg2"; }; - postPatch = "patchShebangs ."; + patches = [ + ./fix-includedir.patch + ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ dbus dbus-glib ] diff --git a/pkgs/development/python-modules/dbus/fix-includedir.patch b/pkgs/development/python-modules/dbus/fix-includedir.patch new file mode 100644 index 00000000000..e3bb0682b5c --- /dev/null +++ b/pkgs/development/python-modules/dbus/fix-includedir.patch @@ -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 |