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

Submit/3dslicer binary #95514

Closed
wants to merge 2 commits into from
Closed

Conversation

MarcWeber
Copy link
Contributor

Motivation for this change
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
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

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.

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; }
Copy link
Contributor

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

Comment on lines +46 to +47
homepage = http://www.mysql.com/;
description = "The world's most popular open source database"; };
Copy link
Contributor

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 ];
Copy link
Contributor

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

Suggested change
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 = [ ];
Copy link
Contributor

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 = "";
Copy link
Contributor

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}:
Copy link
Contributor

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

Comment on lines +20 to +21
pkgs.stdenv.cc.cc
pkgs.pkgs.xorg.libX11
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove pkgs usage

Suggested change
pkgs.stdenv.cc.cc
pkgs.pkgs.xorg.libX11
stdenv.cc.cc
xorg.libX11

buildInputs =
[
pkgs.gcc-unwrapped
pkgs.autoPatchelfHook
Copy link
Contributor

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
Copy link
Contributor

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

Suggested change
pkgs.gcc-unwrapped

pkgs.gcc-unwrapped
pkgs.autoPatchelfHook

pkgs.stdenv.cc.cc
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pkgs.stdenv.cc.cc

also available

Copy link
Contributor

@jonringer jonringer left a 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

@stale
Copy link

stale bot commented Feb 12, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Feb 12, 2021
@SuperSandro2000
Copy link
Member

Closing because the author did not respond for quite a few months. Feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 8.has: package (new) 10.rebuild-darwin: 0 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants