Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For some reason the upstream git repo is missing the tag for the latest
release that is available on pypi. However, the soucre tarball is
available for downlaod from pypi, so let's use that one.
Motivation for this change
I wanted to use a simple Python app for Bluetooth control of my IKEA Idasen sit-stand desk on my new NixOS installation. That application uses some Python modules that require C extensions (GLib introspection, dbus,...), and it was painful to install that on NixOS via
pip
. The only package that was not in NixOS already is this one, so here we go.Things done
After configuring the app, I can now run it like this:
nix-shell -p 'python3.withPackages (ps: with ps; [ gatt-python pyaml ])' --run 'python main.py --sit'
, which is awesome.sandbox
innix.conf
on non-NixOS linux)sorry, just starting with nixon by defaultnix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix-shell -p 'python3.withPackages (ps: with ps; [ gatt-python ])' --run 'gattctl --discover'
worksnix path-info -S
before and after)