Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d26e830997dd
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3c85e586b39b
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 27, 2018

  1. libiio: install python bindings

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    (cherry picked from commit af48e57)
    thoughtpolice committed Sep 27, 2018
    Copy the full SHA
    3c85e58 View commit details
Showing with 16 additions and 2 deletions.
  1. +11 −2 pkgs/development/libraries/libiio/default.nix
  2. +5 −0 pkgs/top-level/python-packages.nix
13 changes: 11 additions & 2 deletions pkgs/development/libraries/libiio/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub
, cmake, flex, bison
, libxml2
, libxml2, python
}:

stdenv.mkDerivation rec {
@@ -14,11 +14,20 @@ stdenv.mkDerivation rec {
sha256 = "05sbvvjka03qi080ad6g2y6gfwqp3n3zv7dpv237dym0zjyxqfa7";
};

outputs = [ "out" "lib" "dev" ];
outputs = [ "out" "lib" "dev" "python" ];

nativeBuildInputs = [ cmake flex bison ];
buildInputs = [ libxml2 ];

postInstall = ''
mkdir -p $python/lib/${python.libPrefix}/site-packages/
touch $python/lib/${python.libPrefix}/site-packages/
cp ../bindings/python/iio.py $python/lib/${python.libPrefix}/site-packages/
substitute ../bindings/python/iio.py $python/lib/${python.libPrefix}/site-packages/iio.py \
--replace 'libiio.so.0' $lib/lib/libiio.so.0
'';

meta = with stdenv.lib; {
description = "API for interfacing with the Linux Industrial I/O Subsystem";
homepage = https://github.com/analogdevicesinc/libiio;
5 changes: 5 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -17314,6 +17314,11 @@ EOF
libtorrentRasterbar = (toPythonModule (pkgs.libtorrentRasterbar.override {
inherit python;
})).python;

libiio = (toPythonModule (pkgs.libiio.override {
inherit python;
})).python;

});

in fix' (extends overrides packages)