Updated wayshot devel for NixOS#130
Conversation
|
Hi, We can't have hardcoded user paths in nix files. It needs to be general in nature. Also I'm not very familiar with nix...I have stopped using nix for a while now. |
Ahhh i see, I have updated the code to remove Hardcoded user path to url link |
|
Hi, looks better now but I know very little about Nix. @lavafroth can you look into this? |
|
Looks fine. I recommend invoking the shell.nix derivation in flake.nix so it pins the depenedencies in a lockfile.
|
|
Hi @lavafroth, |
|
Yes, please do so. This will give the end user a choice for whether they wish to use a flake or the shell.nix way. |
|
Hi @lavafroth, Also sorry if i seemed rude before, |
369f1e2 to
05de080
Compare
|
There's a couple issues here:
See https://wiki.nixos.org/wiki/Rust. The same goes for waycrate/xdg-desktop-portal-luminous#59 Should I update the flakes? I also have a Nix package definition for xdp-luminous |
|
Hello 👋,
I actually agree with you, I personally don't prefer keeping my nix impure, However as discussed with
This is true as well, However At the time of this PR, I didnt know precisely how/what the development was heading towards, whether having the need to only use
Yep will do it in future PR
Yep learnt about it just 2 weeks ago, can use it.
Yep, Will definetly add that.
Redirecting back to overlay, Overlay already adds its own src Path. (obv depends on the overlay as well)
I actually didn't know about this, Does that mean we would have to include clang only during packaging?
I am still somewhat of a newbie as i have only been using nix for past 3/4 months, so |
I already filed a PR for xdp-luminous, and I plan to add it to other waycrate repos waycrate/xdg-desktop-portal-luminous#64 |
I Simply updated the development shell for NixOS to compile the wayshot program.
Seems like it hasnt been updated in a while?
I tried to compile the code using the flake.nix but seems like it doesnt work for me currently 😅
Correct me if i am wrong since i am quite new here but the dependency in code between now and v1.3.1 seems very different.
I could have added and updated dependencies with respect to current flake.nix
However I felt it would be difficult for beginners maybe who are starting off right now and wants to contribute (like me)
Plus I Myself mainly use shell.nix for my projects
So i just manually from scratch created a shell.nix and tested the dependencies one by one.
Hope its fine :)