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
kmix: init at 16.12.1 #22324
kmix: init at 16.12.1 #22324
Conversation
@CarlDong, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ttuegel, @FRidh and @vandenoever to be potential reviewers. |
Further to our exchange on the referenced issue: a) change the title of the PR and commit to "kmix: init at 16.12.1" b) get rid of the commented out c) you can add To answer your question, if you don't specify the dependency, kmix will not know about it. |
Can I put something like "pulseaudio or alsa" in build depends? I will fix my commits, too. |
It is possible to specify parameters to the derivation in order to build different variants, but you still need to choose what the dependencies are in the default case - as mentioned, all dependencies have to be specified and the concept from other distros of "just build against whatever is on the machine" simply doesn't exist here. This is one of the (many) benefits! Since both alsa and pulse are built for the normal KDE environment in NixOS, I suggest you add in both. |
I don't quite understand yet... If I add in pulseaudio as a dep, wont't that pull in lots of pulse-stuff which clutter my system? |
ecm, kdoctools, | ||
kglobalaccel, kxmlgui, kcoreaddons, kdelibs4support, | ||
plasma-framework, pkgs | ||
}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't pass in pkgs
. Instead specify libpulseaudio, alsaLib
.
#maintainers = [ lib.maintainers.ttuegel ]; | ||
}; | ||
nativeBuildInputs = [ ecm kdoctools ]; | ||
buildInputs = with pkgs; [ libpulseaudio alsaLib ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After changing it above, you can get rid of ``with pkgs; ```
If you are running KDE, pulseaudio will already be pulled in. |
Really? I never saw PA in my Backends... Only GStreamer and VLC. |
GStreamer and VLC are Phonon backends; they decode media for Phonon. Phonon still needs a way to communicate with your hardware, either ALSA or PulseAudio.
Only Please do not add a PulseAudio dependency to |
name = "kmix"; | ||
meta = { | ||
license = with lib.licenses; [ gpl2 lgpl21 fdl12 ]; | ||
#maintainers = [ lib.maintainers.ttuegel ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a maintainer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to add myself as maintainer... The instruction in default.nix
of kde-5/applications doesn't make sense at all.
I added myself as a maintainer. And, the dependency is |
You still need to add libpulseaudio and alsaLib to line 5. |
Added... It works without, though |
Please also squash all the commits. |
And are you sure about the license(s)? |
I am not sure. KMix website says GPL2(if my memory is right), but I copied that line from Konsole. I just assumed that they are the same... I'll need to learn some more git to actually squash commits, though. |
I just tried, it doesn't without. cmake is mentioning an unmet optional dependency - canberra. As that is already part of KDE anyway, please add |
How do you test the nix file? I tried nix-build but got some problems about missing arguments. And I will push the commit once I squash them |
Source also mentions gpl2.
Yes, you will need to |
|
Signed-off-by: Rongcui Dong <rongcuid@outlook.com>
This commit should work, as I tested myself. |
@@ -414,6 +414,7 @@ | |||
roblabla = "Robin Lambertz <robinlambertz+dev@gmail.com>"; | |||
roconnor = "Russell O'Connor <roconnor@theorem.ca>"; | |||
romildo = "José Romildo Malaquias <malaquias@gmail.com>"; | |||
rongcuid = "Rongcui Dong <rongcuid@outlook.com>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the convention to use your github username as the attribute name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it. By changing my github username
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh... that also works 😀
Thanks! |
Motivation for this change
ALSA works, but KMix for KDE5 is not present. So I add it. I don't know how long I will keep using KDE or nix, so currently I didn't add myself as maintainer.
Note that I didn't test PulseAudio
Solves #22307
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)