-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixes for shell.nix #3795
base: main
Are you sure you want to change the base?
Fixes for shell.nix #3795
Conversation
Note that @haslersn did build mixxx as well, but with the old |
If you approve, ping me so I can squash-rebase. |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Suggested-by: Sebastian Hasler <sebastian.hasler@gmx.net> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
dc4b0f3
to
18b9897
Compare
show that it is in fact version 4.3.2 on my nixos 20.09 system. @matthiasbeyer what does this command show to you ? |
The build of main will usually fail because the cmake will try to download libdjinterop which will not work. The nix-shell dev environment will still work. Both are fixed in my branch as well. |
same with |
@matthiasbeyer that is strange. Are you running nixos or just nix ? Which version ? |
nixos 20.09, at
|
Strange. Do you have some local override or so ? The default is clearly version 4 for 20.09, but I changed it in my branch as well, so, you can check if #3258 works for you as well. |
$ nix show-derivation nixpkgs.ffmpeg | jq keys
[
"/nix/store/ybkjxyx2h0xkc6xv62aqh7svl0l6v091-ffmpeg-4.3.2.drv"
] |
@haslersn teached me that my
works as expected. Either way, that's not the issue here, is it? Shall I remove the part which forces |
i rather would like to see #3258 merged, it should fix your problems as well now. it does not harm to explicitly use version 4, in fact, it makes sense because on 20.03 the default is in fact version 3. when flakes is stable, we I suggest we bin to a certain nixpkgs version to ensure it builds correctly and reproducibility is guaranteed. We could use niv now for this. @matthiasbeyer have you tested my pr ? The default file has serious problems, on 2.3 and especially on main it does not build to derivate properly because it downloads tarballs from the internet. |
This PR is marked as stale because it has been open 90 days with no activity. |
Since the current shell.nix file is broken, reported here: #4630 For my understanding the current shell.nix file is a kind of misconception compared to the full featured Nixified demo project shown here: files https://github.com/Tokyo-NixOS/presentations/tree/master/2017/02/examples/binserver According to that, our shell.nix file is just a badly named default.nix file and shall be removed. The default.nix file for packaging lives here, which is a perfect location: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/audio/mixxx/default.nix So the main purpose a shell.nix file in an upstream repro is to set up a (temporary) development environment for contributing. In the same way we maintain similar files in our tools directory. @matthiasbeyer do you have interest to fix the nix file towards that goal and care for the maintenance? This means removing the packaging and only keep the environment setup stuff? If not, we will remove the broken file. |
Yes that's right. The |
There's probably a way to install dependencies for the mentioned $ curl -o PKGBUILD 'https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=mixxx-git'
$ makepkg -soe It's likely that something similar exists for nix. If so, we can mention that in the wiki or add it to the README. |
This PR is marked as stale because it has been open 90 days with no activity. |
These two patches were required for me to be able to build from the main branch.
With help from @haslersn