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
Submit/3dslicer binary #95514
Submit/3dslicer binary #95514
Conversation
using binary version because compiling from source is much more effort to maintain because the build scripts use git and download files themselves etc.
description = "The world's most popular open source database"; }; | ||
}; | ||
|
||
in x // { lib = x; } |
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.
generally this isn't needed, lib.getLib <drv>
will do this logic for us
homepage = http://www.mysql.com/; | ||
description = "The world's most popular open source database"; }; |
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 add license and maintainer
export PATH=$PATH:$TMPDIR | ||
''; | ||
|
||
buildInputs = [ cmake bison ncurses openssl readline zlib perl ]; |
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.
tools that need to execute a build time should go in nativeBuildInputs
buildInputs = [ cmake bison ncurses openssl readline zlib perl ]; | |
nativeBuildInputs = [ cmake ]; | |
buildInputs = [ bison ncurses openssl readline zlib perl ]; |
# https://github.com/Slicer/Slicer/blob/master/License.txt | ||
# The 3D Slicer license below is a BSD style license, with extensions | ||
# to cover contributions and other issues specific to 3D Slicer. | ||
maintainers = [ ]; |
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 add yourself
++ ( with pkgs.qt5; [qtbase qtsvg qtwebengine qtscript qtxmlpatterns]); | ||
|
||
meta = with stdenv.lib; { | ||
description = ""; |
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 add description
@@ -0,0 +1,61 @@ | |||
{stdenv, pkgs}: |
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 avoid using pkgs, and instead import each dependency individually.
This allows for things like .override()
to work correctly
pkgs.stdenv.cc.cc | ||
pkgs.pkgs.xorg.libX11 |
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 remove pkgs usage
pkgs.stdenv.cc.cc | |
pkgs.pkgs.xorg.libX11 | |
stdenv.cc.cc | |
xorg.libX11 |
buildInputs = | ||
[ | ||
pkgs.gcc-unwrapped | ||
pkgs.autoPatchelfHook |
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.
goes in native build inputs
|
||
buildInputs = | ||
[ | ||
pkgs.gcc-unwrapped |
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.
available at build time anyway
pkgs.gcc-unwrapped |
pkgs.gcc-unwrapped | ||
pkgs.autoPatchelfHook | ||
|
||
pkgs.stdenv.cc.cc |
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.
pkgs.stdenv.cc.cc |
also available
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.
To comply with CONTRIBUTING.md please have the commit message name be of the format
<pkg-name>: <subject-line>
for more examples, please look at https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes
in your case, the commit message should be:
mysql_5_6: init at 5.6.48
_3dslicer-binary: init at 4.10.2
I marked this as stale due to inactivity. → More info |
Closing because the author did not respond for quite a few months. Feel free to reopen. |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Mainly adding this pull request so that others searching for it can find and run it. The SlicerApp-real runs and you can turn slices into STL which is all I cared about.