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
melody: init at 2.2.1 #97995
melody: init at 2.2.1 #97995
Conversation
Add the Melody Package (https://github.com/artemanufrij/playmymusic) to the package repository. <!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. --> - [ ] Tested using sandboxing ([nix.useSandbox](https://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](https://nixos.org/nix/manual/#sec-conf-file) on non-NixOS linux) - Built on platform(s) - [x] NixOS - [ ] macOS - [ ] other Linux distributions - [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests)) - [x] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review wip"` - [x] 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](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md). First, well second, time commiting. Apparently i managed to mess up the former branch. I'm sorry about that.
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.
Hello, and thanks for contributing your first package to nixpkgs
!
I have several comments, mostly formatting & style.
- Separate out adding yourself as a maintainer to a separate commit.
git reset --soft HEAD~1
, then commit them separately. - Several comments in code body.
My standard review checklist:
- Diff needs some improvement
- Maintainer commit needs separated
- Builds via nix-review:
https://github.com/NixOS/nixpkgs/pull/97995
1 package built:
melody
, meson | ||
, ninja | ||
, gtk3 | ||
, pkgconfig | ||
, python3 | ||
, desktop-file-utils | ||
, vala | ||
, wrapGAppsHook | ||
, appstream | ||
, clutter-gtk | ||
, cmake | ||
, gst_all_1 | ||
, json-glib | ||
, libgee | ||
, libsoup | ||
, pantheon | ||
, sqlite | ||
, taglib |
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.
Sort these alphabetically
src = fetchFromGitHub { | ||
owner = "artemanufrij"; | ||
repo = "playmymusic"; | ||
rev = "bba5fe74134ad7533c41044d8ce41f1a8f69b3b0"; |
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.
Use a tagged release if possible
rev = "bba5fe74134ad7533c41044d8ce41f1a8f69b3b0"; | |
rev = "2.2.1"; |
If not using a tagged release, a reason should be given, and the version above should be changed to something like version = "unstable-2020-09-14"
(where the date is the date of the commit).
desktop-file-utils | ||
meson | ||
ninja | ||
pkgconfig | ||
python3 | ||
vala | ||
wrapGAppsHook |
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.
Sort alphabetically
buildInputs = with gst_all_1; [ | ||
appstream | ||
clutter-gtk | ||
cmake | ||
gst-plugins-bad | ||
gst-plugins-base | ||
gst-plugins-good | ||
gst-plugins-ugly | ||
gstreamer | ||
gtk3 | ||
json-glib | ||
libgee | ||
libsoup | ||
pantheon.elementary-icon-theme | ||
pantheon.granite | ||
sqlite | ||
taglib | ||
]; |
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.
To clarify which are from gst_all_1
, I recommend splitting this into two lists:
buildInputs = [
non-gst_all_1_pkgs
] ++
(with gst_all_1; [ gst_all_1_pkgs ]);
|
||
postPatch = '' | ||
chmod +x meson/post_install.py | ||
patchShebangs meson/post_install.py |
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.
Is this script automatically run?
meta = with stdenv.lib; { | ||
description = "A music player for listening to local music files, online radio and Audio CD's - Designed for elementary OS"; | ||
homepage = "https://anufrij.org/melody"; | ||
license = licenses.gpl3; |
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.
license = licenses.gpl3; | |
license = licenses.gpl3Plus; |
Using gpl3
is deprecated. The source seems to hint that GPL3 or later are acceptable licenses.
melody = callPackage ../applications/audio/melody {}; | ||
|
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.
This typically wouldn't get put at the end, but would probably be sorted into semi-alphabetical order in the range of lines 20000+ (don't have the file in front of me, so rough range)
Add myself to maintainers-list.nix - [ ] Tested using sandboxing ([nix.useSandbox](https://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](https://nixos.org/nix/manual/#sec-conf-file) 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](https://github.com/NixOS/nixpkgs/blob/master/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](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).
add myself to maintainers-list.nix <!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. --> - [ ] Tested using sandboxing ([nix.useSandbox](https://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](https://nixos.org/nix/manual/#sec-conf-file) 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](https://github.com/NixOS/nixpkgs/blob/master/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](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).
Apparently, i'm able to mess up things but not to fix em. Closing this and might pick up up later on... |
Motivation for this change
Add the Melody Package (https://github.com/artemanufrij/playmymusic) to the package repository.
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)First, well second, time commiting. Apparently, i managed to mess up the former branch. I'm sorry about that.