lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 51 lines 1.4 kB view raw
1{ stdenv, fetchurl, qt4, bzip2, lib3ds, levmar, muparser, unzip, vcg }: 2 3stdenv.mkDerivation rec { 4 name = "meshlab-1.3.3"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.3.3/MeshLabSrc_AllInc_v133.tgz"; 8 sha256 = "03wqaibfbfag2w1zi1a5z6h546r9d7pg2sjl5pwg24w7yp8rr0n9"; 9 }; 10 11 # I don't know why I need this; without this, the rpath set at the beginning of the 12 # buildPhase gets removed from the 'meshlab' binary 13 dontPatchELF = true; 14 15 patches = [ ./include-unistd.diff ]; 16 17 hardeningDisable = [ "format" ]; 18 19 buildPhase = '' 20 mkdir -p "$out/include" 21 export NIX_LDFLAGS="-rpath $out/opt/meshlab $NIX_LDFLAGS" 22 cd meshlab/src 23 pushd external 24 qmake -recursive external.pro 25 make 26 popd 27 qmake -recursive meshlab_full.pro 28 make 29 ''; 30 31 installPhase = '' 32 mkdir -p $out/opt/meshlab $out/bin $out/lib 33 pushd distrib 34 cp -R * $out/opt/meshlab 35 popd 36 ln -s $out/opt/meshlab/meshlab $out/bin/meshlab 37 ''; 38 39 sourceRoot = "."; 40 41 buildInputs = [ qt4 unzip vcg ]; 42 43 meta = { 44 description = "System for the processing and editing of unstructured 3D triangular meshes"; 45 homepage = http://meshlab.sourceforge.net/; 46 license = stdenv.lib.licenses.gpl2Plus; 47 maintainers = with stdenv.lib.maintainers; [viric]; 48 platforms = with stdenv.lib.platforms; linux; 49 broken = stdenv.isLinux && stdenv.isi686; 50 }; 51}