Merge pull request #42843 from fragamus/master

hmetis: init at 1.5

authored by Sarah Brofeldt and committed by GitHub f06ce583 1b269632

+44
+42
pkgs/applications/science/math/hmetis/default.nix
··· 1 + { stdenv, fetchurl, ghostscript }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "hmetis-${version}"; 5 + version = "1.5"; 6 + 7 + src = fetchurl { 8 + url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/hmetis-${version}-linux.tar.gz"; 9 + sha256 = "e835a098c046e9c26cecb8addfea4d18ff25214e49585ffd87038e72819be7e1"; 10 + }; 11 + 12 + nativeBuildInputs = [ ghostscript ]; 13 + 14 + binaryFiles = "hmetis khmetis shmetis"; 15 + 16 + patchPhase = '' 17 + for binaryfile in $binaryFiles; do 18 + patchelf \ 19 + --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 \ 20 + --set-rpath ${stdenv.glibc}/lib \ 21 + $binaryfile 22 + done 23 + ''; 24 + 25 + buildPhase = '' 26 + gs -sOutputFile=manual.pdf -sDEVICE=pdfwrite -SNOPAUSE -dBATCH manual.ps 27 + ''; 28 + 29 + installPhase = '' 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 34 + ''; 35 + 36 + meta = with stdenv.lib; { 37 + description = "hMETIS is a set of programs for partitioning hypergraphs"; 38 + homepage = http://glaros.dtc.umn.edu/gkhome/metis/hmetis/overview; 39 + license = licenses.unfree; 40 + platforms = [ "i686-linux" "x86_64-linux" ]; 41 + }; 42 + }
+2
pkgs/top-level/all-packages.nix
··· 2421 2421 fluentd = callPackage ../tools/misc/fluentd { }; 2422 2422 2423 2423 flvstreamer = callPackage ../tools/networking/flvstreamer { }; 2424 + 2425 + hmetis = callPackage_i686 ../applications/science/math/hmetis { }; 2424 2426 2425 2427 libbsd = callPackage ../development/libraries/libbsd { }; 2426 2428