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
perlPackages.AppMusicChordPro: init at 0.977 #100295
perlPackages.AppMusicChordPro: init at 0.977 #100295
Conversation
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.
Hi @tdroxler and welcome to the NixOS project!
0.977
is available on CPAN, so please update to the latest version. I've added a few comments to this review.
pkgs/top-level/perl-packages.nix
Outdated
@@ -2487,6 +2500,21 @@ let | |||
}; | |||
}; | |||
|
|||
ChordPro = buildPerlPackage { |
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.
ChordPro = buildPerlPackage { | |
AppMusicChordPro = buildPerlPackage { |
The attribute name should be AppMusicChordPro
pkgs/top-level/perl-packages.nix
Outdated
@@ -2487,6 +2500,21 @@ let | |||
}; | |||
}; | |||
|
|||
ChordPro = buildPerlPackage { | |||
pname = "App-Music-ChordPro"; | |||
version = "0.974"; |
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.
version = "0.974"; | |
version = "0.977"; |
0.977 is latest on CPAN
pkgs/top-level/perl-packages.nix
Outdated
url = mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.974.tar.gz; | ||
sha256 = "7fae50535dcb7f68171a8c1f8ad49b13563f406fb1d44eba78b349e7ef83a8af"; |
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.
url = mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.974.tar.gz; | |
sha256 = "7fae50535dcb7f68171a8c1f8ad49b13563f406fb1d44eba78b349e7ef83a8af"; | |
url = "mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.977.tar.gz"; | |
sha256 = "0ggip43cddi5f6rylb07f56dhkfhbcbm621lvcnjfadnn9lrbwqh"; |
pkgs/top-level/perl-packages.nix
Outdated
}; | ||
propagatedBuildInputs = [ AppPackager FileLoadLines FontTTF IOString ImageInfo PDFAPI2 StringInterpolateNamed ]; | ||
meta = { | ||
homepage = http://www.chordpro.org; |
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.
homepage = http://www.chordpro.org; | |
homepage = "http://www.chordpro.org"; |
Quote URLs per NixOS/rfcs#45
pkgs/top-level/perl-packages.nix
Outdated
url = mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.974.tar.gz; | ||
sha256 = "7fae50535dcb7f68171a8c1f8ad49b13563f406fb1d44eba78b349e7ef83a8af"; | ||
}; | ||
propagatedBuildInputs = [ AppPackager FileLoadLines FontTTF IOString ImageInfo PDFAPI2 StringInterpolateNamed ]; |
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.
propagatedBuildInputs = [ AppPackager FileLoadLines FontTTF IOString ImageInfo PDFAPI2 StringInterpolateNamed ]; | |
buildInputs = [ PodParser ]; | |
propagatedBuildInputs = [ AppPackager FileLoadLines IOString ImageInfo PDFAPI2 StringInterpolateNamed TextLayout Wx ]; |
PodParser
is needed for compatibility with perl-5.32.0
Wx
can be added for bin/wxchordpro
support
FontTTF
is already included by PDFAPI2
TextLayout
is also needed (by 0.977), here is the derivation:
TextLayout = buildPerlPackage {
pname = "Text-Layout";
version = "0.019";
src = fetchurl {
url = "mirror://cpan/authors/id/J/JV/JV/Text-Layout-0.019.tar.gz";
sha256 = "a043f2a89e113b29c523a9efa71fa8398ed75edd482193901b38d08dd4a4108e";
};
buildInputs = [ PDFAPI2 ];
meta = {
description = "Pango style markup formatting";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
};
};
03901de
to
564538a
Compare
Hi @stigtsp thx for the review and the help. I fixed the comments and I already squashed/rebased so it's clean. Cheers |
Great, thx! Can you also change the commit/PR title from |
564538a
to
0bbcf36
Compare
Also, can you move |
0bbcf36
to
aec71f1
Compare
done |
@GrahamcOfBorg build perlPackages.AppMusicChordPro |
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.
Found two more things:
- url for
AppMusicChordPro
should be quoted - Breaks on Darwin due to: Wx not supporting the platform, and
bin/chordpro
needsshortenPerlShebang
pkgs/top-level/perl-packages.nix
Outdated
pname = "App-Music-ChordPro"; | ||
version = "0.977"; | ||
src = fetchurl { | ||
url = mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.977.tar.gz; |
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.
url = mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.977.tar.gz; | |
url = "mirror://cpan/authors/id/J/JV/JV/App-Music-ChordPro-0.977.tar.gz"; |
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.
done
pkgs/top-level/perl-packages.nix
Outdated
sha256 = "0ggip43cddi5f6rylb07f56dhkfhbcbm621lvcnjfadnn9lrbwqh"; | ||
}; | ||
buildInputs = [ PodParser ]; | ||
propagatedBuildInputs = [ AppPackager FileLoadLines IOString ImageInfo PDFAPI2 StringInterpolateNamed TextLayout Wx ]; |
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.
The following can be added to support darwin
propagatedBuildInputs = [ AppPackager FileLoadLines IOString ImageInfo PDFAPI2 StringInterpolateNamed TextLayout Wx ]; | |
propagatedBuildInputs = [ AppPackager FileLoadLines IOString ImageInfo PDFAPI2 StringInterpolateNamed TextLayout ] | |
++ stdenv.lib.optional (!stdenv.isDarwin) [ Wx ]; | |
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang; | |
postInstall = stdenv.lib.optionalString stdenv.isDarwin '' | |
shortenPerlShebang $out/bin/chordpro | |
rm $out/bin/wxchordpro # Wx not supported on darwin | |
''; |
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.
done, thx again for the help.
aec71f1
to
d8ac42b
Compare
pkgs/top-level/perl-packages.nix
Outdated
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang; | ||
postInstall = stdenv.lib.optionalString stdenv.isDarwin '' | ||
shortenPerlShebang $out/bin/chordpro | ||
rm $out/bin/wxchordpro # Wx not supported on darwin | ||
''; |
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.
Sorry, the indentation on these lines are a bit off. Should align with propagatedBuildInputs
above.
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.
np, it's done
d8ac42b
to
f37f538
Compare
@GrahamcOfBorg build perlPackages.AppMusicChordPro perldevelPackages.AppMusicChordPro |
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.
Looks good to me, thx for the contribution
Build and tested OK on linux x64
and darwin x64
Result of nixpkgs-review pr 100295
1
10 packages built:
- perl530Packages.AppMusicChordPro
- perl530Packages.AppPackager
- perl530Packages.FileLoadLines
- perl530Packages.StringInterpolateNamed
- perl530Packages.TextLayout
- perl532Packages.AppMusicChordPro
- perl532Packages.AppPackager
- perl532Packages.FileLoadLines
- perl532Packages.StringInterpolateNamed
- perl532Packages.TextLayout
thx for your help. |
Motivation for this change
ChordPro was missing
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)