barracuda-fsh / pyobd

An OBD-II compliant car diagnostic tool
GNU General Public License v2.0
831 stars 44 forks source link

[ Feature request ]: add nix package. #33

Open Silverdev2482 opened 1 month ago

Silverdev2482 commented 1 month ago

On nixos running unpackaged applications is annoying and hard, if not impossible. Adding a nix package would be very helpful.

barracuda-fsh commented 1 month ago

Do the pyinstaller images not work? They are made available under every release.

Silverdev2482 commented 4 weeks ago

Sorry for forgetting about this issue, If you mean like pip install requirments.txt (that might be bad syntax) it won't work on nixos. I was able to make a shell.nix that worked though, maybe throw it in. although it isn't a proper package any you may need wifi to invoke nix-shell. Also python 3.12 doesn't work with the shell.nix


[nix-shell:~/Programming/pyobd]$ cat shell.nix 
let
  pkgs = import <nixpkgs> {};
in pkgs.mkShell {
  packages = [
    (pkgs.python311.withPackages (python-pkgs: [
      python-pkgs.wxpython
      python-pkgs.pyserial
      python-pkgs.numpy
      python-pkgs.tornado
      python-pkgs.pint
      python-pkgs.pillow
      python-pkgs.six
    ]))
  ];
}
barracuda-fsh commented 4 weeks ago

I meant the pyinstaller images for debian and ubuntu. Do any of those work? Here: https://github.com/barracuda-fsh/pyobd/releases/tag/v1.19

Silverdev2482 commented 3 weeks ago

Oh they are just exectuables, no they don't work out of the box but they work just fine with steam-run, but a nix package with udev rules would be nice. Didn't test connected to an actual car but I'd assume they would work since the shell.nix worked.