8 stdenv.mkDerivation rec {
13 url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/hmetis-${version}-linux.tar.gz";
14 sha256 = "e835a098c046e9c26cecb8addfea4d18ff25214e49585ffd87038e72819be7e1";
17 nativeBuildInputs = [ ghostscript ];
19 binaryFiles = "hmetis khmetis shmetis";
22 for binaryfile in $binaryFiles; do
24 --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 \
25 --set-rpath ${stdenv.cc.libc}/lib \
31 gs -sOutputFile=manual.pdf -sDEVICE=pdfwrite -SNOPAUSE -dBATCH manual.ps
35 mkdir -p $out/bin $out/share/doc/hmetis $out/lib
36 mv $binaryFiles $out/bin
37 mv manual.pdf $out/share/doc/hmetis
38 mv libhmetis.a $out/lib
42 description = "hMETIS is a set of programs for partitioning hypergraphs";
43 homepage = "http://glaros.dtc.umn.edu/gkhome/metis/hmetis/overview";
44 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
45 license = licenses.unfree;