Loading pkgs/by-name/id/ideamaker/bootstrap.patch 0 → 100644 +15 −0 Original line number Diff line number Diff line diff -ur openexr-v2.2.0-src-orig/OpenEXR/bootstrap openexr-v2.2.0-src/OpenEXR/bootstrap --- OpenEXR/bootstrap 2015-03-31 01:02:41.000000000 -0400 +++ OpenEXR/bootstrap 2015-03-31 01:03:35.000000000 -0400 @@ -47,11 +47,6 @@ fi } -# Check if /usr/local/share/aclocal exists -if [ -d /usr/local/share/aclocal ]; then - ACLOCAL_INCLUDE="$ACLOCAL_INCLUDE -I /usr/local/share/aclocal" -fi - run_cmd aclocal -I m4 $ACLOCAL_INCLUDE run_cmd $LIBTOOLIZE --automake --copy run_cmd automake --add-missing --copy No newline at end of file pkgs/by-name/id/ideamaker/package.nix +111 −59 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ boost, c-blosc, common-updater-scripts, copyDesktopItems, curl, dpkg, fetchFromGitHub, Loading @@ -17,7 +18,6 @@ makeDesktopItem, nlopt, opencascade-occt_7_6, openexr, openssl_1_1, openvdb, poly2tri-c, Loading @@ -26,37 +26,63 @@ tbb, unzip, writeShellApplication, automake, libtool, pkgconf, autoconf, zlib, }: stdenv.mkDerivation (finalAttrs: { let pname = "ideamaker"; version = "5.1.4.8480"; src = let semver = lib.strings.concatStringsSep "." ( lib.lists.init (builtins.splitVersion finalAttrs.version) ); in fetchurl { url = "https://downcdn.raise3d.com/ideamaker/release/${semver}/ideaMaker_${finalAttrs.version}-ubuntu_amd64.deb"; hash = "sha256-vOiHqdegFHqA1PYYvtXBQSIl+OVq2oyAT80ZFtaIxl8="; semver = lib.strings.concatStringsSep "." (lib.lists.init (builtins.splitVersion version)); description = "Raise3D's 3D slicer software"; openexr_2_2_1 = stdenv.mkDerivation rec { name = "openexr-2.2.1"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "1kdf2gqznsdinbd5vcmqnif442nyhdf9l7ckc51410qm2gv5m6lg"; }; nativeBuildInputs = [ autoPatchelfHook dpkg shared-mime-info libsForQt5.wrapQtAppsHook patches = [ ./bootstrap.patch ]; outputs = [ "bin" "dev" "out" "doc" ]; preConfigure = '' ./bootstrap ''; nativeBuildInputs = [ pkgconf ]; buildInputs = [ curl libcork libGLU libsForQt5.quazip nlopt opencascade-occt_7_6 openssl_1_1 (openvdb.overrideAttrs { autoconf automake libtool ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; meta = { homepage = "http://www.openexr.com/"; license = lib.licenses.bsd3; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ wkennington ]; }; }; openvdb_5_0_0 = ( openvdb.overrideAttrs { # attempting to build https://github.com/NixOS/nixpkgs/commit/7053b097de9334b07f6b74476b6b206542695731 version = "5.0.0"; outputs = [ "out" ]; Loading @@ -71,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ unzip openexr openexr_2_2_1 boost tbb jemalloc Loading Loading @@ -104,9 +130,35 @@ stdenv.mkDerivation (finalAttrs: { installFlags = ''DESTDIR=$(out)''; NIX_CFLAGS_COMPILE = "-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/"; NIX_CFLAGS_COMPILE = "-I${openexr_2_2_1.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/"; NIX_LDFLAGS = "-lboost_iostreams"; }) } ); in stdenv.mkDerivation { inherit pname version; src = fetchurl { url = "https://downcdn.raise3d.com/ideamaker/release/${semver}/ideaMaker_${version}-ubuntu_amd64.deb"; hash = "sha256-vOiHqdegFHqA1PYYvtXBQSIl+OVq2oyAT80ZFtaIxl8="; }; nativeBuildInputs = [ autoPatchelfHook copyDesktopItems dpkg shared-mime-info libsForQt5.wrapQtAppsHook ]; buildInputs = [ curl libcork libGLU libsForQt5.quazip nlopt opencascade-occt_7_6 openssl_1_1 openvdb_5_0_0 poly2tri-c tbb ]; Loading Loading @@ -134,12 +186,11 @@ stdenv.mkDerivation (finalAttrs: { install -D usr/share/ideamaker/icons/ideamaker-icon.png \ $out/share/pixmaps/ideamaker.png ln -s ${finalAttrs.desktopItem}/share/applications $out/share/ runHook postInstall ''; desktopItem = makeDesktopItem { desktopItems = [ (makeDesktopItem { name = "ideamaker"; exec = "ideamaker"; icon = "ideamaker"; Loading @@ -152,7 +203,7 @@ stdenv.mkDerivation (finalAttrs: { "Viewer" "Engineering" ]; genericName = finalAttrs.meta.description; genericName = description; mimeTypes = [ "application/x-ideamaker" "model/3mf" Loading @@ -164,7 +215,8 @@ stdenv.mkDerivation (finalAttrs: { startupNotify = true; terminal = false; type = "Application"; }; }) ]; passthru.updateScript = lib.getExe (writeShellApplication { name = "ideamaker-update-script"; Loading @@ -183,12 +235,12 @@ stdenv.mkDerivation (finalAttrs: { }); meta = { inherit description; homepage = "https://www.raise3d.com/ideamaker/"; changelog = "https://www.raise3d.com/download/ideamaker-release-notes/"; description = "Raise3D's 3D slicer software"; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; license = lib.licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with lib.maintainers; [ cjshearer ]; }; }) } Loading
pkgs/by-name/id/ideamaker/bootstrap.patch 0 → 100644 +15 −0 Original line number Diff line number Diff line diff -ur openexr-v2.2.0-src-orig/OpenEXR/bootstrap openexr-v2.2.0-src/OpenEXR/bootstrap --- OpenEXR/bootstrap 2015-03-31 01:02:41.000000000 -0400 +++ OpenEXR/bootstrap 2015-03-31 01:03:35.000000000 -0400 @@ -47,11 +47,6 @@ fi } -# Check if /usr/local/share/aclocal exists -if [ -d /usr/local/share/aclocal ]; then - ACLOCAL_INCLUDE="$ACLOCAL_INCLUDE -I /usr/local/share/aclocal" -fi - run_cmd aclocal -I m4 $ACLOCAL_INCLUDE run_cmd $LIBTOOLIZE --automake --copy run_cmd automake --add-missing --copy No newline at end of file
pkgs/by-name/id/ideamaker/package.nix +111 −59 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ boost, c-blosc, common-updater-scripts, copyDesktopItems, curl, dpkg, fetchFromGitHub, Loading @@ -17,7 +18,6 @@ makeDesktopItem, nlopt, opencascade-occt_7_6, openexr, openssl_1_1, openvdb, poly2tri-c, Loading @@ -26,37 +26,63 @@ tbb, unzip, writeShellApplication, automake, libtool, pkgconf, autoconf, zlib, }: stdenv.mkDerivation (finalAttrs: { let pname = "ideamaker"; version = "5.1.4.8480"; src = let semver = lib.strings.concatStringsSep "." ( lib.lists.init (builtins.splitVersion finalAttrs.version) ); in fetchurl { url = "https://downcdn.raise3d.com/ideamaker/release/${semver}/ideaMaker_${finalAttrs.version}-ubuntu_amd64.deb"; hash = "sha256-vOiHqdegFHqA1PYYvtXBQSIl+OVq2oyAT80ZFtaIxl8="; semver = lib.strings.concatStringsSep "." (lib.lists.init (builtins.splitVersion version)); description = "Raise3D's 3D slicer software"; openexr_2_2_1 = stdenv.mkDerivation rec { name = "openexr-2.2.1"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "1kdf2gqznsdinbd5vcmqnif442nyhdf9l7ckc51410qm2gv5m6lg"; }; nativeBuildInputs = [ autoPatchelfHook dpkg shared-mime-info libsForQt5.wrapQtAppsHook patches = [ ./bootstrap.patch ]; outputs = [ "bin" "dev" "out" "doc" ]; preConfigure = '' ./bootstrap ''; nativeBuildInputs = [ pkgconf ]; buildInputs = [ curl libcork libGLU libsForQt5.quazip nlopt opencascade-occt_7_6 openssl_1_1 (openvdb.overrideAttrs { autoconf automake libtool ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; meta = { homepage = "http://www.openexr.com/"; license = lib.licenses.bsd3; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ wkennington ]; }; }; openvdb_5_0_0 = ( openvdb.overrideAttrs { # attempting to build https://github.com/NixOS/nixpkgs/commit/7053b097de9334b07f6b74476b6b206542695731 version = "5.0.0"; outputs = [ "out" ]; Loading @@ -71,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ unzip openexr openexr_2_2_1 boost tbb jemalloc Loading Loading @@ -104,9 +130,35 @@ stdenv.mkDerivation (finalAttrs: { installFlags = ''DESTDIR=$(out)''; NIX_CFLAGS_COMPILE = "-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/"; NIX_CFLAGS_COMPILE = "-I${openexr_2_2_1.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/"; NIX_LDFLAGS = "-lboost_iostreams"; }) } ); in stdenv.mkDerivation { inherit pname version; src = fetchurl { url = "https://downcdn.raise3d.com/ideamaker/release/${semver}/ideaMaker_${version}-ubuntu_amd64.deb"; hash = "sha256-vOiHqdegFHqA1PYYvtXBQSIl+OVq2oyAT80ZFtaIxl8="; }; nativeBuildInputs = [ autoPatchelfHook copyDesktopItems dpkg shared-mime-info libsForQt5.wrapQtAppsHook ]; buildInputs = [ curl libcork libGLU libsForQt5.quazip nlopt opencascade-occt_7_6 openssl_1_1 openvdb_5_0_0 poly2tri-c tbb ]; Loading Loading @@ -134,12 +186,11 @@ stdenv.mkDerivation (finalAttrs: { install -D usr/share/ideamaker/icons/ideamaker-icon.png \ $out/share/pixmaps/ideamaker.png ln -s ${finalAttrs.desktopItem}/share/applications $out/share/ runHook postInstall ''; desktopItem = makeDesktopItem { desktopItems = [ (makeDesktopItem { name = "ideamaker"; exec = "ideamaker"; icon = "ideamaker"; Loading @@ -152,7 +203,7 @@ stdenv.mkDerivation (finalAttrs: { "Viewer" "Engineering" ]; genericName = finalAttrs.meta.description; genericName = description; mimeTypes = [ "application/x-ideamaker" "model/3mf" Loading @@ -164,7 +215,8 @@ stdenv.mkDerivation (finalAttrs: { startupNotify = true; terminal = false; type = "Application"; }; }) ]; passthru.updateScript = lib.getExe (writeShellApplication { name = "ideamaker-update-script"; Loading @@ -183,12 +235,12 @@ stdenv.mkDerivation (finalAttrs: { }); meta = { inherit description; homepage = "https://www.raise3d.com/ideamaker/"; changelog = "https://www.raise3d.com/download/ideamaker-release-notes/"; description = "Raise3D's 3D slicer software"; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; license = lib.licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with lib.maintainers; [ cjshearer ]; }; }) }