3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #42843 from fragamus/master

hmetis: init at 1.5
This commit is contained in:
Sarah Brofeldt 2018-07-02 11:40:41 +02:00 committed by GitHub
commit f06ce58323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ stdenv, fetchurl, ghostscript }:
stdenv.mkDerivation rec {
name = "hmetis-${version}";
version = "1.5";
src = fetchurl {
url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/hmetis-${version}-linux.tar.gz";
sha256 = "e835a098c046e9c26cecb8addfea4d18ff25214e49585ffd87038e72819be7e1";
};
nativeBuildInputs = [ ghostscript ];
binaryFiles = "hmetis khmetis shmetis";
patchPhase = ''
for binaryfile in $binaryFiles; do
patchelf \
--set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 \
--set-rpath ${stdenv.glibc}/lib \
$binaryfile
done
'';
buildPhase = ''
gs -sOutputFile=manual.pdf -sDEVICE=pdfwrite -SNOPAUSE -dBATCH manual.ps
'';
installPhase = ''
mkdir -p $out/bin $out/share/doc/hmetis $out/lib
mv $binaryFiles $out/bin
mv manual.pdf $out/share/doc/hmetis
mv libhmetis.a $out/lib
'';
meta = with stdenv.lib; {
description = "hMETIS is a set of programs for partitioning hypergraphs";
homepage = http://glaros.dtc.umn.edu/gkhome/metis/hmetis/overview;
license = licenses.unfree;
platforms = [ "i686-linux" "x86_64-linux" ];
};
}

View file

@ -2421,6 +2421,8 @@ with pkgs;
fluentd = callPackage ../tools/misc/fluentd { };
flvstreamer = callPackage ../tools/networking/flvstreamer { };
hmetis = callPackage_i686 ../applications/science/math/hmetis { };
libbsd = callPackage ../development/libraries/libbsd { };