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

ams: init at 2.1.2 #82291

Merged
merged 2 commits into from Mar 13, 2020
Merged

ams: init at 2.1.2 #82291

merged 2 commits into from Mar 13, 2020

Conversation

sjfloat
Copy link
Contributor

@sjfloat sjfloat commented Mar 10, 2020

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 10, 2020

@jonringer per https://discourse.nixos.org/t/adopting-a-new-pkg/6178/2

It was suggested that I add myself as a maintainer. I assumed this meant my github username. Apparently this didn't get by tests. Did it mean that I needed to add my name to stdenv.lib.maintainers as well?

Open to all suggestions.

Thanks!

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making a PR!

just a few comments

also, your commit message should be:

ams: init at 2.1.2

pkgs/applications/audio/ams/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/ams/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/ams/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/ams/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/ams/default.nix Outdated Show resolved Hide resolved
@jonringer
Copy link
Contributor

@jonringer per https://discourse.nixos.org/t/adopting-a-new-pkg/6178/2

It was suggested that I add myself as a maintainer. I assumed this meant my github username. Apparently this didn't get by tests. Did it mean that I needed to add my name to stdenv.lib.maintainers as well?

yes, you need to add yourself to the maintainers list, please take a look at #81835 for how to do that commit

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 11, 2020

Thanks Jon. Super instructive! I'll work through these.

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 11, 2020

Thanks again, @jonringer. Very welcoming experience!

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 11, 2020

also, your commit message should be:

ams: init at 2.1.2

Right. Will conform next time!

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 11, 2020

Is this essentially mergeable now @jonringer?

@sjfloat sjfloat requested a review from jonringer March 11, 2020 16:04
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git history needs to be cleaned up:

git reset HEAD~6
git add maintainers
git commit -m "maintainers: add sjfloat"
git add pkgs/
git commit -m "ams: init at 2.1.2"
git push .. .. --force

this will make it two commits, one to add you as a maintainer in nixpkgs, the other to add your package.

Unrelated to PR: the patch should probably be upstreamed so that others can benefit from it

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 11, 2020

git history needs to be cleaned up:

git reset HEAD~6
git add maintainers
git commit -m "maintainers: add sjfloat"
git add pkgs/
git commit -m "ams: init at 2.1.2"
git push .. .. --force

this will make it two commits, one to add you as a maintainer in nixpkgs, the other to add your package.

IOW, you'd like this squashed and the commit message corrected. Certainly.

Unrelated to PR: the patch should probably be upstreamed so that others can benefit from it

Actually, I think the patch probably already is upstream. I originally based my derivation on a Debian package, and I found the patch there. When I got things working and I switched to pulling directly from the upstream source, I had a lot of troubles trying to build a later commit. I hope to move quickly to resolving those, but they weren't critical and did not substantially affect the user experience; it was very usable as I built it and I wanted to make it available first.

Thanks again!

@jonringer
Copy link
Contributor

IOW, you'd like this squashed and the commit message corrected. Certainly.

Yea, to help maintainership, commit messages are important to quickly gather what changes were done. You can read the guidance https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes and also https://nixos.org/nixpkgs/manual/#chap-submitting-changes

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just get this output when i try to run the program. is this normal?

No Qt translation for locale 'en_US' found.
No AlsaModularSynth translation for locale 'en_US' found.
LADSPA_PATH not set, assuming LADSPA_PATH=/usr/lib/ladspa:/usr/lib64/ladspa:/usr/local/lib/ladspa:/usr/local/lib64/ladspa
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
^CCannot connect to server socket err = No such file or directory
Cannot connect to server request channel

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 12, 2020

It is if the jack service isn't running. You'll get similar errors from other jack clients in such a case.

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 12, 2020

We might be able to do better about providing reasonable defaults for those environment variables though.

@jtojnar jtojnar changed the title ams ams: init at 2.1.2 Mar 12, 2020
@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 12, 2020 via email

@jtojnar
Copy link
Contributor

jtojnar commented Mar 12, 2020

Looking at the commit that switches to Qt 5 by default, something like configureFlags = [ "--enable-qt5" ] should work in 2.1.2 too. There is no excuse to use Qt 4 today. #33248

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 12, 2020 via email

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 12, 2020

Yeah, Qt5 is going to take some puzzling out. I managed to build something, but I got runtime errors due, I assume, to needing wrapQtAppsHook. It's not clear to me yet how to go about that.

@jtojnar
Copy link
Contributor

jtojnar commented Mar 12, 2020

Just add wrapQtAppsHook to nativeBuildInputs.

@jtojnar
Copy link
Contributor

jtojnar commented Mar 12, 2020

You need to use qt5.wrapQtAppsHook, or libsForQt5.callPackage.

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 13, 2020

You need to use qt5.wrapQtAppsHook, or libsForQt5.callPackage.

Thanks!

Everything builds and functions properly. I'm going to look it over and push again.

@jtojnar
Copy link
Contributor

jtojnar commented Mar 13, 2020

Jon’s suggestions in the Files tab still apply.

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 13, 2020

Jon’s suggestions still apply.

As far as I know, I addressed them all. Is there anything in particular that I may have missed?

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 13, 2020

I hope this nails it. Sorry for all the bother!

@jtojnar
Copy link
Contributor

jtojnar commented Mar 13, 2020

By the way, do you have your committer name/email set to = intentionally?

@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 13, 2020

By the way, do you have your commiter name/email set to = intentionally?

Hmm. Thanks for bringing that to my attention.

@sjfloat sjfloat requested a review from jonringer March 13, 2020 20:51
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff LGTM
commits LGTM
thanks @jtojnar

[3 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/82291
1 package built:
ams

@jonringer
Copy link
Contributor

@GrahamcOfBorg build ams

@jonringer jonringer merged commit 33746be into NixOS:master Mar 13, 2020
@sjfloat sjfloat deleted the ams branch March 14, 2020 00:45
@sjfloat sjfloat restored the ams branch March 14, 2020 00:47
@sjfloat
Copy link
Contributor Author

sjfloat commented Mar 15, 2020

By the way, do you have your committer name/email set to = intentionally?

I'm not sure I understand why that is. It's not the case in my local git config, nor is it so in my github account.

@jtojnar
Copy link
Contributor

jtojnar commented Mar 15, 2020

You can use git config --show-origin user.name to see where does the value come from.

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

Successfully merging this pull request may close these issues.

None yet

4 participants