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

gtk-wave-cleaner: init at 0.22-01 #57870

Closed
wants to merge 3 commits into from

Conversation

balsoft
Copy link
Member

@balsoft balsoft commented Mar 18, 2019

Motivation for this change

This PR adds gtk-wave-cleaner, an old but still viable piece of software for cleaning sounds.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@balsoft balsoft force-pushed the gtk-wave-cleaner-init branch 5 times, most recently from 190e2c8 to 82900da Compare March 18, 2019 21:10
@balsoft balsoft changed the title Gtk wave cleaner init gtk-wave-cleaner: init at 0.22-01 Mar 18, 2019
cliSupport ? true, perl ? null,
xdgSupport ? true, xdg_utils ? null
}:
assert pulseSupport || alsaSupport || (builtins.match ".*-darwin" stdenv.system != null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert pulseSupport || alsaSupport || (builtins.match ".*-darwin" stdenv.system != null);
assert pulseSupport || alsaSupport || (builtins.match ".*-darwin" stdenv.system != null);

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use stdenv.isDarwin?

@worldofpeace
Copy link
Contributor

worldofpeace commented Mar 18, 2019

If you have other prs please consider these styling suggestions there.

Additionally we prefer to rebase vs merging 3a95c1d.

@balsoft
Copy link
Member Author

balsoft commented Mar 19, 2019

Thank you very much for spending your time, I am going to apply those suggestions to other PR's.

@balsoft
Copy link
Member Author

balsoft commented Mar 19, 2019

@worldofpeace I believe I have fixed all of those problems, if you see more, please correct me! I'm a new contributor, so showing where I'm wrong is the best possible way to learn.

@worldofpeace
Copy link
Contributor

@worldofpeace I believe I have fixed all of those problems, if you see more, please correct me! I'm a new contributor, so showing where I'm wrong is the best possible way to learn.

Totally, though please note I don't believe in mistakes. Only learning opportunities 👍 .
You've responded well, and I'm now going to test using this application.

@worldofpeace
Copy link
Contributor

Hmm I couldn't test this with audio produced with any version of ffmpeg in nixpkgs

 ffmpeg -f lavfi -i "sine=frequency=1000:duration=5" -ac 2 output.wav

AlisterH/gwc#5

Guess it could be still useful.

@balsoft
Copy link
Member Author

balsoft commented Mar 28, 2019

@GrahamcOfBorg build gtk-wave-cleaner

1 similar comment
@veprbl
Copy link
Member

veprbl commented Apr 11, 2019

@GrahamcOfBorg build gtk-wave-cleaner

cliSupport ? true, perl ? null,
xdgSupport ? true, xdg_utils ? null
}:
assert pulseSupport || alsaSupport || (builtins.match ".*-darwin" stdenv.system != null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use stdenv.isDarwin?

stdenv, gnumake, autoconf, automake, pkgconfig,
libsndfile, gtk2, fftw,
pulseSupport ? stdenv.config.pulseaudio or false, alsaSupport ? true,
libpulseaudio ? null, pulseaudio ? null, alsaLib ? null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
libpulseaudio ? null, pulseaudio ? null, alsaLib ? null,
pulseaudio ? null, alsaLib ? null,

}:

assert pulseSupport || alsaSupport || (builtins.match ".*-darwin" stdenv.system != null);
assert pulseSupport -> libpulseaudio != null && pulseaudio != null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert pulseSupport -> libpulseaudio != null && pulseaudio != null;
assert pulseSupport -> pulseaudio != null;

automake
];

preConfigure = "autoreconf -i";
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use autoreconfHook in nativeBuildInputs instead of this and ac and am.

};

nativeBuildInputs = [
gnumake
Copy link
Contributor

Choose a reason for hiding this comment

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

Make should be always available, or does this need GNU variant specifically? It should probably be commented in that case.

@veprbl
Copy link
Member

veprbl commented Dec 27, 2019

@balsoft Are you still interested in finishing this?

@balsoft
Copy link
Member Author

balsoft commented Dec 27, 2019

@veprbl it was a package I made for someone else, so no, not really. It would be nice to have it in nixpkgs, but said person is fine using it from an overlay.

@veprbl
Copy link
Member

veprbl commented Dec 27, 2019

@balsoft Getting this merged will probably involve addressing comments raised by @jtojnar and a possible further review of this PR. If you don't want to finish this, let's close.

@balsoft
Copy link
Member Author

balsoft commented Dec 27, 2019

Let's close.

@veprbl veprbl closed this Dec 27, 2019
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

5 participants