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

seaview: init at 4.7 #46595

Merged
merged 1 commit into from Sep 13, 2018
Merged

seaview: init at 4.7 #46595

merged 1 commit into from Sep 13, 2018

Conversation

iimog
Copy link
Member

@iimog iimog commented Sep 13, 2018

Motivation for this change

Add package for seaview, a GUI for molecular phylogeny

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)
  • Fits CONTRIBUTING.md.


buildInputs = with pkgs; [ fltk libjpeg ];

patchPhase = "sed -i 's#PATH=/bin:/usr/bin#/usr/bin/env#' seaview.cxx";
Copy link
Contributor

Choose a reason for hiding this comment

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

Am I reading the source correctly that this is only used to get rm? And in that case, can you patch in the actual path from coreutils instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right it is just a single occurrence and only used to get rm working. In the next iteration I will follow your suggestion.

meta = with stdenv.lib; {
description = "GUI for molecular phylogeny";
longDescription = ''
SeaView is a multiplatform, graphical user interface for multiple sequence alignment and molecular phylogeny.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind indenting this? The multiline strings strip common leading whitespace just fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not at all. Will indent in the next iteration.

@@ -0,0 +1,41 @@
{ stdenv, fetchurl, pkgs }:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please rely on the dependencies (like fltk and libjpeg) directly here, and get rid of the pkgs argument

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the comment.

@srhb
Copy link
Contributor

srhb commented Sep 13, 2018

@GrahamcOfBorg build seaview

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: seaview

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: seaview

Partial log (click to expand)

g++ -o seaview   seaview.o custom.o use_mase_files.o regions.o load_seq.o align.o xfmatpt.o comlines.o resource.o nexus.o viewasprots.o racnuc_fetch.o concatenate.o statistics.o trees.o treedraw.o addbootstrap.o least_squares_brl.o pseudoterminal.o unrooted.o pdf_or_ps.o svg.o threads.o tbe.o Fl_Native_File_Chooser_FLTK.o raa_acnuc.o parser.o md5.o zsockr.o misc_acnuc.o dnapars.o protpars.o seq.o phylip.o lwl.o bionj.o phyml_util.o  `fltk-config --use-images --ldflags` -ldl -lpthread -lz
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7
shrinking /nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7/bin/seaview
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7/bin
patching script interpreter paths in /nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7
checking for references to /build in /nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7...
/nix/store/rgwwvypqy4fldyan3shxl1nbax58saz4-seaview-4.7

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: seaview

Partial log (click to expand)

g++ -o seaview   seaview.o custom.o use_mase_files.o regions.o load_seq.o align.o xfmatpt.o comlines.o resource.o nexus.o viewasprots.o racnuc_fetch.o concatenate.o statistics.o trees.o treedraw.o addbootstrap.o least_squares_brl.o pseudoterminal.o unrooted.o pdf_or_ps.o svg.o threads.o tbe.o Fl_Native_File_Chooser_FLTK.o raa_acnuc.o parser.o md5.o zsockr.o misc_acnuc.o dnapars.o protpars.o seq.o phylip.o lwl.o bionj.o phyml_util.o  `fltk-config --use-images --ldflags` -ldl -lpthread -lz
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7
shrinking /nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7/bin/seaview
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7/bin
patching script interpreter paths in /nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7
checking for references to /build in /nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7...
/nix/store/q4xjdzrrjn0lbqa144adfmn4agp4rwfw-seaview-4.7

@xeji xeji merged commit e2df8e7 into NixOS:master Sep 13, 2018
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

4 participants