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

mrtrix: init at 3.0_RC3_latest #80292

Merged
merged 1 commit into from Feb 24, 2020
Merged

mrtrix: init at 3.0_RC3_latest #80292

merged 1 commit into from Feb 24, 2020

Conversation

bcdarwin
Copy link
Member

@bcdarwin bcdarwin commented Feb 16, 2020

Motivation for this change

Add a package. (Note that the slightly strange-looking version is in fact a valid Git tag.)

This package consists mostly of command-line tools, but there are also two qt5-based image viewers (mrview and shview). I have provided an option withGui ? true to allow users to disable these viewers (primarily in order to remove Qt from the closure). They work on NixOS but are unlikely to work out-of-the box on non-NixOS Linux (see #62169), but I've refrained from asserting that they shouldn't be built since a user might want to fiddle with runtime GL stuff.

Some programs rely on FSL and/or ANTs backends; I have somewhat heavy-handedly wrapped all binaries to point to ANTs, while FSL is not available in Nix at the moment and has a non-commercial license so would be convenient to disable by default for Hydra builds.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • [NA] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [NA] 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/)
  • [NA] Determined the impact on package closure size (by running nix path-info -S before and after)
  • [NA] Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

This package consists mostly of command-line tools, but there are also two qt5-based image viewers (`mrview` and `shview`). I have provided an option `withGui = true` to allow users to disable these viewers. They work on NixOS but unlikely to work out-of-the box on non-NixOS Linux (see NixOS#62169), but I've refrained from asserting that they shouldn't be built since a user might want to fiddle with runtime GL stuff.

Some programs rely on FSL and/or ANTs backends; I have somewhat heavy-handedly wrapped all binaries to point to ANTs, while FSL is not available in Nix at the moment and has a non-commercial license so would be convenient to disable by default for Hydra builds.
@lheckemann
Copy link
Member

Given the odd name of the version, can we be sure that the tag won't be replaced in the future?

@bcdarwin
Copy link
Member Author

@lheckemann - fair point, but it hasn't been updated in a while and an RC4 is out (but they've labelled it broken/internal use only). I could change to use the commit instead?

@lheckemann
Copy link
Member

That does sound unlikely to change, so I'm fine with using this.

@lheckemann lheckemann merged commit 0cc83f8 into NixOS:master Feb 24, 2020
@bcdarwin bcdarwin deleted the mrtrix branch February 24, 2020 13:57
@bcdarwin bcdarwin mentioned this pull request Apr 3, 2020
8 tasks
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

2 participants