Skip to content
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

Linux package #72

Open
mausch opened this issue Jun 23, 2023 · 4 comments
Open

Linux package #72

mausch opened this issue Jun 23, 2023 · 4 comments

Comments

@mausch
Copy link

mausch commented Jun 23, 2023

This isn't an issue, more like an announcement that others might find useful.

Like many others, I wanted to run EasyABC on Linux, and found it difficult to get the right version of each component, config, etc.
So I packaged EasyABC with Nix.
This package includes abcmidi, ghostscript, python, fluidsynth, soundfont, everything. And they will all be preconfigured when EasyABC starts, no need for the user to set the paths in config.

All a Linux user has to do to run EasyABC from Nix is:

  1. Install Nix
  2. Run nix run github:nixos/nixpkgs/644fed2285c00e2b232f271773b2c1d0d26e7234#easyabc

I've tested this on NixOS and on Ubuntu 22.04.

@smithtim
Copy link

Thank you! This is great.

I noticed that when I install the Nix package, it does not add an entry to the desktop menu in MATE. I guess it should appear in the "Sound & Video" section. Any way to make this happen when the package is installed?

@mausch
Copy link
Author

mausch commented Jun 30, 2023

Hi, when you run nix run ... nothing is actually installed permanently.
There are different Nix commands to actually do that, and Nix does have a way to define desktop menu items/icons.
The Nix package would have to be modified to add that (using the makeDesktopItem nix function), but I have no idea if that works outside of NixOS really.

@smithtim
Copy link

smithtim commented Jul 1, 2023

Yes, I ran nix-env -iA nixos.easyabc to install it to my local profile. For other applications, after installing them and refreshing the MATE panel, they appear in the desktop menu, but for EasyABC, that didn't happen.

I see there is a related issue #58 that EasyABC is missing a shortcut and icon for Debian.

Perhaps a .desktop file should be created here in the EasyABC repo, and then NixOS (and Debian) could make use of that?

@mausch
Copy link
Author

mausch commented Aug 20, 2023

You can also just write the .desktop file as part of the nix package. Look for other packages in nixpkgs using the makeDesktopItem nix function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants