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
s-tar: init at 1.5.3 #40771
s-tar: init at 1.5.3 #40771
Conversation
@GrahamcOfBorg build standard-tar |
Success on x86_64-linux (full log) Attempted: standard-tar Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: standard-tar Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: standard-tar Partial log (click to expand)
|
In all cases, appearance of a directory name refers to the files and (recursively) sub-directories of that directory. | ||
Star's actions are controlled by the mandatory command flags from the list below. | ||
The way star acts may be modified by additional options. | ||
Note that unpacking tar archives may be a security risk because star may overwrite existing files. |
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.
These lines should all be indented:
longDescription = ''
Star archives and extracts multiple files to and from a single file called a tarfile.
…
Note that unpacking tar archives may be a security risk because star may overwrite existing files.
'';
name = "star-${version}"; | ||
version = "1.5.3"; | ||
src = fetchurl { | ||
url = "https://sourceforge.net/projects/s-tar/files/${name}.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.
Should use mirror://sourceforge
. Something like
url = "mirror://sourceforge/s-tar/${name}.tar.gz";
might work.
There also seems to be a tar.bz2 download file as well so can use that. Saves a few bytes :-)
|
||
preConfigure = "rm configure"; | ||
preBuild = "sed 's_/bin/__g' -i RULES/*"; | ||
makeFlags = [ "DESTDIR=$(out)" "INS_BASE=/ install"]; |
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.
makeFlags = [ "GMAKE_NOWARN=true" ];
installFlags = [ "DESTDIR=$(out)" "INS_BASE=/" ];
makeFlags = [ "DESTDIR=$(out)" "INS_BASE=/ install"]; | ||
postInstall = '' | ||
find $out/bin -type l -delete | ||
rm -r $out/etc $out/include $out/sbin |
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.
Need to indent a bit:
postInstall = ''
find $out/bin -type l -delete
rm -r $out/etc $out/include $out/sbin
'';
''; | ||
|
||
meta = { | ||
description = "Star is a very fast tar like tape archiver with improved functionality."; |
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.
No need to start the description with the package name and it should not end with a period. Also there is a double space here.
Perhaps change to
description = "A very fast tar like tape archiver with improved functionality";
Based on the GrahamcOfBorg build result it might be worth limiting this package to x86 linux platforms. |
@rycee Thanks for your detailed feedback, I really appreciate it! I made all the changes you mentioned but the platforms thing. How do I specify that it's only platform is x86 linux? |
Also added myself to the maintainers list.
|
Content looks good to me, but the naming is not yet consistent: the attribute name is We should try to be as consistent as possible to avoid confusion. Ideally, attribute, folder, and package have the same name (which cannot be My personal preference would be |
Looks good to me but I agree about the naming. My opinion is also that s-tar would be nice to have everywhere. To whoever merges: remember to squash. |
Hmmh, that's an interesting problem. Both the executable and the software itself is named |
Fine. If you rename everything consistently to |
@GrahamcOfBorg build s-tar |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: s-tar Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: s-tar Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: s-tar Partial log (click to expand)
|
Thank you! |
This package causes evaluation errors:
|
Also added myself to the maintainers list.
Motivation for this change
Needed the package
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)