-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
vcv-rack: add desktop item #111042
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
vcv-rack: add desktop item #111042
Conversation
@Moredread, @nathyong, heads up |
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package built:
|
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 can't easily see the resulting Desktop Items as I'm using i3 as my wm, but the source of the changes looks good.
@ddelabru this PR looks good, though there are merge conflicts now. Could you address them please? BTW, tip: To avoid such merge conflicts, using 1 item per list in the arguments of |
desktopItems = [ (makeDesktopItem { | ||
type = "Application"; | ||
name = pname; | ||
desktopName = "VCV Rack"; | ||
genericName = "Eurorack simulator"; | ||
comment = "Create music by patching together virtual synthesizer modules"; | ||
exec = "Rack"; | ||
icon = "Rack"; | ||
categories = "AudioVideo;AudioVideoEditing;Audio;"; | ||
extraEntries = "Keywords=music;"; | ||
}) ]; |
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.
desktopItems = [ (makeDesktopItem { | |
type = "Application"; | |
name = pname; | |
desktopName = "VCV Rack"; | |
genericName = "Eurorack simulator"; | |
comment = "Create music by patching together virtual synthesizer modules"; | |
exec = "Rack"; | |
icon = "Rack"; | |
categories = "AudioVideo;AudioVideoEditing;Audio;"; | |
extraEntries = "Keywords=music;"; | |
}) ]; | |
desktopItems = [ | |
(makeDesktopItem { | |
type = "Application"; | |
name = pname; | |
desktopName = "VCV Rack"; | |
genericName = "Eurorack simulator"; | |
comment = "Create music by patching together virtual synthesizer modules"; | |
exec = "Rack"; | |
icon = "Rack"; | |
categories = "AudioVideo;AudioVideoEditing;Audio;"; | |
extraEntries = "Keywords=music;"; | |
}) | |
]; |
if [ ! -e icon_"$size"x"$size"x32.png ] | ||
then |
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.
if [ ! -e icon_"$size"x"$size"x32.png ] | |
then | |
if [ ! -e icon_"$size"x"$size"x32.png ]; then |
install -Dm644 icon_"$size"x"$size"x32.png $out/share/icons/hicolor/"$size"x"$size"/apps/Rack.png | ||
done; | ||
|
||
copyDesktopItems |
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.
copyDesktopItems | |
runHook postInstall |
Also please add the preHook.
I marked this as stale due to inactivity. → More info |
Closing due to no response from OP. |
Motivation for this change
VCV Rack is distributed for Linux platforms as a source or binary tarball with no desktop entry. Because it is a desktop application, I have created a desktop item for it here.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)