-
Notifications
You must be signed in to change notification settings - Fork 5
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
add nix flake support #3
Conversation
So I did never use flake or something before, so please be patient with me. However, if I look at the dependencies in flake.nix I think: GitRepository, URI, and XMLMini should be all. All other things are not used, or not directly used by ham. Just a comment, we will not merge the PR directly, but import the changes in our master repo internally and push an update to github when integrated. |
Hi @alexwarg , thank you for taking a look! I think the catch here is
I would guess they are, just that on some systems they are already installed, and thus they are hidden dependencies. If I remove all deps but GitRepository, URI and XMLMini, I get this error when running ham: Can't locate System/Command.pm in @INC (you may need to install the System::Command module) (@INC contains: /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0 /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl /nix/store/8334m6k80h0fd5acqkmp8hfrcgagm684-perl5.34.0-URI-5.05/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi /nix/store/8334m6k80h0fd5acqkmp8hfrcgagm684-perl5.34.0-URI-5.05/lib/perl5/site_perl/5.34.0 /nix/store/8334m6k80h0fd5acqkmp8hfrcgagm684-perl5.34.0-URI-5.05/lib/perl5/site_perl /nix/store/dcf4qn3rs67kqa3n800jl1j6wb1gw1qf-perl5.34.0-XML-Mini-1.38/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi /nix/store/dcf4qn3rs67kqa3n800jl1j6wb1gw1qf-perl5.34.0-XML-Mini-1.38/lib/perl5/site_perl/5.34.0 /nix/store/dcf4qn3rs67kqa3n800jl1j6wb1gw1qf-perl5.34.0-XML-Mini-1.38/lib/perl5/site_perl /nix/store/y84babjpa0ngq62pqvygsajscx7mlnks-perl-5.34.0/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi /nix/store/y84babjpa0ngq62pqvygsajscx7mlnks-perl-5.34.0/lib/perl5/site_perl/5.34.0 /nix/store/y84babjpa0ngq62pqvygsajscx7mlnks-perl-5.34.0/lib/perl5/5.34.0/x86_64-linux-thread-multi /nix/store/y84babjpa0ngq62pqvygsajscx7mlnks-perl-5.34.0/lib/perl5/5.34.0 /nix/store/5inqqk78k9czsqpqsbwld1rn5rx9wnda-ham/opt/ham) at /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0/Git/Repository/Command.pm line 12.
BEGIN failed--compilation aborted at /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0/Git/Repository/Command.pm line 12.
Compilation failed in require at /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0/Git/Repository.pm line 11.
BEGIN failed--compilation aborted at /nix/store/5k3wpd3z5s0sl35rjc95v9g4wz74vbzz-perl5.34.0-Git-Repository-1.324/lib/perl5/site_perl/5.34.0/Git/Repository.pm line 11.
Compilation failed in require at /nix/store/5inqqk78k9czsqpqsbwld1rn5rx9wnda-ham/opt/ham/Hammer/Project.pm line 10.
BEGIN failed--compilation aborted at /nix/store/5inqqk78k9czsqpqsbwld1rn5rx9wnda-ham/opt/ham/Hammer/Project.pm line 10.
Compilation failed in require at /nix/store/5inqqk78k9czsqpqsbwld1rn5rx9wnda-ham/opt/ham/.ham-wrapped line 16.
BEGIN failed--compilation aborted at /nix/store/5inqqk78k9czsqpqsbwld1rn5rx9wnda-ham/opt/ham/.ham-wrapped line 16. In fact, removing any of the dependencies causes a similar issue. Anyways, |
Hi, @wucke13. I'm always looking forward to attempts to make the L4Re ecosystem more Nix-friendly. :-) Irrespective to your PR, did you notice that
|
@herrwiese No, this must have escaped me. In fact, that warrants to close this PR 👍 Could you allocate maybe an hour to look into how L4Re could be built using Nix, together with me? I already have some progress in this regard, but I'd like to check with someone who has a deeper understanding of L4Re 😄 |
Hi @wucke13 , |
Excellent! I'd like to protect my work mail address from spam and thus do not publishing it, but Adam already has it. You can also contact me on telegram and matrix (I'm on matrix.org as homeserver) - the user name is the same as on GH for both. Looking forward to hear from you 😄 |
Hi, I'd like to enable a seamless development experience for L4RE on nix based systems. As ham is a key component in the L4RE ecosystem, I started here. Basically, once this PR is merged anyone who happens to already have
nix
with flakes support installed can simply runnix run github:kernkonzept/ham
andham
is automatically installed and already executed. So now, before the PR is merged, I can runnix run github:wucke13/ham
and I'm already presented with the help message ofham
.@Steav005 please check this one out and look if you see any issues.
In case this wasn't obvious, I'm one of the DLR folks who intend to take L4RE to the next level 😄