From aa637fe12acf45eb86a2c3084be6e93c3f6b39ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Mon, 28 May 2018 21:52:55 +0200 Subject: [PATCH 1/2] medfile: init at 3.3.1 --- .../development/libraries/medfile/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/libraries/medfile/default.nix diff --git a/pkgs/development/libraries/medfile/default.nix b/pkgs/development/libraries/medfile/default.nix new file mode 100644 index 000000000000..5a29a9219fb8 --- /dev/null +++ b/pkgs/development/libraries/medfile/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, cmake, hdf5 }: + +stdenv.mkDerivation rec { + name = "medfile-${version}"; + version = "3.3.1"; + + src = fetchurl { + url = "http://files.salome-platform.org/Salome/other/med-${version}.tar.gz"; + sha256 = "1215sal10xp6xirgggdszay2bmx0sxhn9pgh7x0wg2w32gw1wqyx"; + }; + + buildInputs = [ cmake hdf5 ]; + + checkPhase = "make test"; + + postInstall = "rm -r $out/bin/testc"; + + meta = with stdenv.lib; { + description = "Library to read and write MED files"; + homepage = http://salome-platform.org/; + platforms = platforms.linux; + license = licenses.lgpl3Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34fd1a7672be..b0ac1fcd3d0b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3369,6 +3369,10 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; + medfile = callPackage ../development/libraries/medfile { + hdf5 = hdf5_1_8; + }; + memtester = callPackage ../tools/system/memtester { }; minergate = callPackage ../applications/misc/minergate { }; From 95998480e69c83fd236b085f6a44092a078197af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Sun, 27 May 2018 17:22:24 +0200 Subject: [PATCH 2/2] freecad: 0.16.6712 -> 0.17 --- pkgs/applications/graphics/freecad/default.nix | 12 ++++++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix index d517306c1d61..87565a1e53e5 100644 --- a/pkgs/applications/graphics/freecad/default.nix +++ b/pkgs/applications/graphics/freecad/default.nix @@ -1,19 +1,23 @@ { stdenv, fetchurl, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts -, boost, zlib, python27Packages, swig, gfortran, soqt, libf2c, makeWrapper, makeDesktopItem }: +, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran +, soqt, libf2c, makeWrapper, makeDesktopItem +, mpi ? null }: + +assert mpi != null; let pythonPackages = python27Packages; in stdenv.mkDerivation rec { name = "freecad-${version}"; - version = "0.16.6712"; + version = "0.17"; src = fetchurl { url = "https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz"; - sha256 = "14hs26gvv7gbg9misxq34v4nrds2sbxjhj4yyw5kq3zbvl517alp"; + sha256 = "1yv6abdzlpn4wxy315943xwrnbywxqfgkjib37qwfvbb8y9p60df"; }; buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost - zlib python swig gfortran soqt libf2c makeWrapper matplotlib + zlib python swig gfortran soqt libf2c makeWrapper matplotlib mpi vtk hdf5 medfile pycollada pyside pysideShiboken pysideTools pivy ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0ac1fcd3d0b..eb4f6d901f54 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16021,7 +16021,7 @@ with pkgs; fomp = callPackage ../applications/audio/fomp { }; - freecad = callPackage ../applications/graphics/freecad { }; + freecad = callPackage ../applications/graphics/freecad { mpi = openmpi; }; freemind = callPackage ../applications/misc/freemind { };