1 { lib, stdenv, fetchurl, ghostscript }:
3 stdenv.mkDerivation rec {
8 url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/hmetis-${version}-linux.tar.gz";
9 sha256 = "e835a098c046e9c26cecb8addfea4d18ff25214e49585ffd87038e72819be7e1";
12 nativeBuildInputs = [ ghostscript ];
14 binaryFiles = "hmetis khmetis shmetis";
17 for binaryfile in $binaryFiles; do
19 --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 \
20 --set-rpath ${stdenv.cc.libc}/lib \
26 gs -sOutputFile=manual.pdf -sDEVICE=pdfwrite -SNOPAUSE -dBATCH manual.ps
30 mkdir -p $out/bin $out/share/doc/hmetis $out/lib
31 mv $binaryFiles $out/bin
32 mv manual.pdf $out/share/doc/hmetis
33 mv libhmetis.a $out/lib
37 description = "hMETIS is a set of programs for partitioning hypergraphs";
38 homepage = "http://glaros.dtc.umn.edu/gkhome/metis/hmetis/overview";
39 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
40 license = licenses.unfree;
41 platforms = [ "i686-linux" "x86_64-linux" ];