UCL / pet-rd-tools

Command line tools for PET-MR (pre-)processing
Apache License 2.0
13 stars 4 forks source link

Add default.nix for Nix package manager. #30

Closed ashgillman closed 6 years ago

ashgillman commented 6 years ago

I thought you might be interested in seeing this @bathomas

Nix is just a package manager, link apt-get, etc., but interesting in that its quite easy to write your own packages.

If you navigate to petmr-rd-tools/ and type nix-build, it will automatically install cmake, boost, itk and glog, then run cmake and make, and install the tools to ./result/bin/.

Not sure how much of interest it is to you guys, but worth a look. I also have packages for STIR, SIRF, etc.

bathomas commented 6 years ago

Can you add a comment to the top of the nix file stating that it belongs to the package and that you authored it? Then I'm happy to accept.

ashgillman commented 6 years ago

Done. But have you run it? I woudn't merge unless n_users > 1.

ashgillman commented 6 years ago

See also https://github.com/ashgillman/SIRF-NixBuild

bathomas commented 6 years ago

I have run it. Worked straight out of the box on Ubuntu 17.10.