-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Package for nix #18
Comments
I had not any luck yet with https://github.com/pbek/nixcfg/blob/main/apps/jimmy/default.nix, is there maybe a python application that you know that is built similarly and that is present on https://search.nixos.org/packages?channel=unstable? I have no knowledge of python packaging (I didn't even know about PyInstaller) and no experience in nix python packaging. 😅 |
I'm not really familiar with the NixOS build system. I will check for similar applications (but probably only tomorrow). There are two ways to distribute the script/app:
|
As far as I read, is |
Btw. yesterday, I installed nix on an Ubuntu system. 😉 I also installed https://github.com/direnv/direnv. In combination, you can use it to get a specific set of tools in a certain directory. When you leave the directory, those packages are gone again. So you can use different versions of node, ruby, php, python, ... in different projects without complications. 😉 |
https://wiki.nixos.org/wiki/Packaging/Python could help with the packaging. |
I tried to read around a bit, but didn't get a clue. A similar project could be https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/office/zim/default.nix. But not sure if it's really similar in terms of packaging. I guess the problem is that the The idea behind building a single binary was to not mess around with any OS or distribution specific things and having to maintain a single release path only. Is it possible to simply execute or wrap a binary in NixOS? |
Those binaries still depend on e.g. static glibc paths, which doesn't work on NixOS. With nix everything is built depending on patch in the nix-store, thus every e.g. application can depend on even different version of a library. |
Usually, python applications are built directly for nixpkgs. I don't know if a wrapper like for e.g. packages that directly download a |
It would be great to have a package for jimmy in https://github.com/NixOS/nixpkgs (the largest package repository).
The text was updated successfully, but these errors were encountered: