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
gildas: init at jul17a #27138
gildas: init at jul17a #27138
Conversation
{ stdenv, fetchurl, gtk2 , pkgconfig , python27 , gfortran , python27Packages , lesstif , cfitsio , getopt , perl , groff }: | ||
|
||
stdenv.mkDerivation rec { | ||
version = "feb17d"; |
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.
Are you sure the version doesn't break version sorting?
I would like to see a version like 20170217_d (for the exact format, grep the repository to see other examples with dates in the version), if this assumption is invalid.
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.
I agree that this can break version sorting, but I'm not responsible for the versioning of Gildas... I'll propose a different version number for the nix package so...
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.
@bzizou In order to make your life (and that of everyone else) easier, you could e-mail the author of Gildas. Alternatively, you could parse the format they are using and compute the version based on their version. This way, if you ever automate the update process, there is no manual work required anymore.
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.
OK, already suggested to my contact in the Gildas team. I think that I'll do something simple for now and see if they changed the thing for the next release
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.
Note that versions in Nix must start with a digit. Otherwise nix-env
will consider it part of the package name. So e.g. nix-env -i gildas
won't work.
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.
If versions must start with a digit, then we should have an assertion somewhere.
cp admin/wrapper.sh $out/bin/gildas-wrapper.sh | ||
chmod 755 $out/bin/gildas-wrapper.sh | ||
for i in $out/libexec/bin/* ; do | ||
ln -s $out/bin/gildas-wrapper.sh $out/bin/`basename $i` |
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.
Please replace with "$(basename "$i")"
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.
ok
meta = { | ||
description = "Radioastronomy data analysis software"; | ||
longDescription = '' | ||
GILDAS is a collection of state-of-the-art softwares |
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.
Replace softwares with software.
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.
ok
+ sprintf( exec_argv[i++], "%s", app_name); | ||
exec_argv[i++] = NULL; | ||
if (i >= MAX_ARGC) { | ||
gcore_c_message(seve_e, "SIC", "Too much arguments, exiting"); |
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.
much -> many
Also please output how many arguments were given and how many was the maximum expected.
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.
Well, this comes from the upstream code. I can also patch this, and I4ll suggest the patch to the upstream
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.
If it's upstream code, please suggest it to upstream and don't spend the time to make the change here.
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: made the suggestion to my private contact in the team (and by the way, submitted the original patch...)
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 attribute nativeBuildInputs
is not used for pkgconfig and perhaps others, so that's an improvement you could still make.
The most important value however is that you already tested the package for a few weeks before sharing it.
Thanks for your contribution.
@bzizou The version issue still needs to be resolved before this can be merged. |
@0xABAB Sure, I'll amend my commit very soon. I just wanted one of my users to test the new package, as I upgraded gildas by the way... |
Fixes:
Re-tested by a real user on a real hpc cluster |
@@ -0,0 +1,18 @@ | |||
diff --new-file -r -u gildas-src-feb17d.orig/admin/wrapper.sh gildas-src-feb17d/admin/wrapper.sh | |||
--- gildas-src-feb17d.orig/admin/wrapper.sh 1970-01-01 01:00:00.000000000 +0100 | |||
+++ gildas-src-feb17d/admin/wrapper.sh 2017-05-18 21:00:01.660778782 +0200 |
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.
Will this wrapper part in future versions of the software? Just asking because of the git-like hash in the patch path name.
|
||
enableParallelBuilding = false; | ||
|
||
nativeBuildInputs = [ pkgconfig groff perl getopt gfortran python27 python27Packages.numpy ]; |
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 numpy
a runtime dependency of this application?
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
numpy
a runtime dependency of this application?
Yes, it is.
FYI I'm currently in the process of upgrading to the latest version as the source for this PR is no more available |
Ok, please reopen as a separate PR when you're ready then. Thanks. |
Motivation for this change
Gildas is a radio-astronomy code that is used into my HPC center.
This package has been successfully tested by our users and is now in production since a few weeks into our local channel.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)