-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Create a nix flake for nix users #670
base: dev
Are you sure you want to change the base?
Conversation
The folder where streamrip stores configuration is generated using the appdirs package. If it's generating a folder that's immutable on Nix that suggests appdirs doesn't support NixOS. Maybe you should open a bug report there too. In the meantime, a fix could simply be to override the folder in streamrip/streamrip/rip/user_paths.py Lines 4 to 10 in 8757956
if NixOS is detected. |
Hey, sorry, I forgot to attach logs that I thought would be helpful.
How nix works is that the the entire repo is copied to an immutable folder, so any thing that changes/creates a file in the repo dir is impossible. That said, the program seems to continue fine if I comment out the If I
I get that path is just an empty string. If I then set Worst comes to worst I could just add a |
Do you have db paths set in the config? |
Hey, I created a simple nix flake for people who use nix like me. The issue I'm running into with is that the
--no-db
seems to still want to assert a path from the executable dir, which in NixOS it can't do because the executable dir is immutable. The fix should be simple -- just make theassert path
indb.py
a conditional that checks ifno-db
is passed first. I don't want to change that though because I'm unfamiliar with the code and am unsure if it'll break something, so I'd like some more feedback first.