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

dcm2niix: init at 1.0.20170130 #33883

Merged
merged 2 commits into from Jan 15, 2018
Merged

Conversation

ashgillman
Copy link
Contributor

Motivation for this change

Add a package used in biomedical imaging

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • [X ] 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"
  • [X ] Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

, libyamlcpp
}:

let
Copy link
Member

Choose a reason for hiding this comment

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

Since you are using a recursive attribute set you might as well skip the let block entirely and put these attributes on the derivation attribute set.

}:

let
version = "v1.0.20170130";
Copy link
Member

Choose a reason for hiding this comment

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

It's common practice not to have the "v" in the version number attribute but instead in the rev attribute passed to fetchFromGitHub.

};

enableParallelBuilding = true;
buildInputs = [ cmake libyamlcpp];
Copy link
Member

Choose a reason for hiding this comment

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

cmake should be in nativeBuildInputs

DICOM format to the NIfTI format.
'';
homepage = https://www.nitrc.org/projects/dcm2nii;
license = stdenv.lib.licenses.bsd3;
Copy link
Member

Choose a reason for hiding this comment

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

You could simplify the meta attributes by using the with stdenv.lib syntax on the meta attribute.

homepage = https://www.nitrc.org/projects/dcm2nii;
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.ashgillman ];
platforms = stdenv.lib.platforms.linux;
Copy link
Member

Choose a reason for hiding this comment

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

This software seems to be compatible with darwin too. I think that maybe this should be platforms.all instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your feedback. Should this be the case given that I haven't tested against darwin?

Copy link
Member

Choose a reason for hiding this comment

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

We have a bot (@GrahamcOfBorg) that will at least do a build test on darwin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool, cheers


let
version = "v1.0.20170130";
sha256 = "1f2nzd8flp1rfn725bi64z7aw3ccxyyygzarxijw6pvgl476i532";
Copy link
Member

Choose a reason for hiding this comment

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

Please move to fetchFromGitHub.

@adisbladis
Copy link
Member

Please change commit message to dcm2niix: init at <version>

@ashgillman ashgillman changed the title Add dcm2niix package. dcm2niix: init at 1.0.20170130 Jan 15, 2018
@adisbladis
Copy link
Member

@GrahamcOfBorg build dcm2niix

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-linux

-- Install configuration: "Release"
-- Installing: /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130/bin/dcm2niix
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130
shrinking /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130/bin/dcm2niix
strip is /nix/store/wxn5gn8amxm1w0ikcx4gbs8a17wvss4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130/bin 
patching script interpreter paths in /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130
checking for references to /tmp/nix-build-dcm2niix-1.0.20170130.drv-0 in /nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130...
/nix/store/xpny9fbwvk8wnym6zdp6q3h0lbzlgz52-dcm2niix-1.0.20170130

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-darwin

install flags: install SHELL=/nix/store/hgsbnqhg7zr5vbjazb250ac4wnj3cfhy-bash-4.4-p12/bin/bash
[100%] Built target dcm2niix
Install the project...
-- Install configuration: "Release"
-- Installing: /nix/store/i91iiqzd9wlpw69wb64fyl7pzh8y981b-dcm2niix-1.0.20170130/bin/dcm2niix
post-installation fixup
strip is /nix/store/bhfkh37smh9lc5bngdha6zx98k6w6cgd-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/i91iiqzd9wlpw69wb64fyl7pzh8y981b-dcm2niix-1.0.20170130/bin
patching script interpreter paths in /nix/store/i91iiqzd9wlpw69wb64fyl7pzh8y981b-dcm2niix-1.0.20170130
/nix/store/i91iiqzd9wlpw69wb64fyl7pzh8y981b-dcm2niix-1.0.20170130

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: aarch64-linux

-- Install configuration: "Release"
-- Installing: /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130/bin/dcm2niix
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130
shrinking /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130/bin/dcm2niix
strip is /nix/store/c6qj0j45xizkrx58i65j75a5ysmqhgrs-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130/bin
patching script interpreter paths in /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130
checking for references to /build in /nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130...
/nix/store/dynvqc5wn4lwji40d4y1d56rjl7ng4qp-dcm2niix-1.0.20170130

@adisbladis adisbladis merged commit 9c6e5b3 into NixOS:master Jan 15, 2018
@adisbladis
Copy link
Member

Thanks! :)

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

3 participants