nixpkgs/pkgs/applications/science/math/nauty/default.nix

32 lines
997 B
Nix
Raw Normal View History

2016-10-11 07:49:04 +00:00
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "nauty-${version}";
version = "26r11";
2016-10-11 07:49:04 +00:00
src = fetchurl {
url = "http://pallini.di.uniroma1.it/nauty${version}.tar.gz";
sha256 = "05z6mk7c31j70md83396cdjmvzzip1hqb88pfszzc6k4gy8h3m2y";
2016-10-11 07:49:04 +00:00
};
2018-12-08 20:58:45 +00:00
outputs = [ "out" "dev" ];
2016-10-11 07:49:04 +00:00
buildInputs = [];
installPhase = ''
2018-12-08 20:58:45 +00:00
mkdir -p "$out"/{bin,share/doc/nauty} "$dev"/{lib,include/nauty}
2016-10-11 07:49:04 +00:00
2018-12-08 20:58:45 +00:00
find . -type f -perm -111 \! -name '*.*' \! -name configure -exec cp '{}' "$out/bin" \;
2016-10-11 07:49:04 +00:00
cp [Rr][Ee][Aa][Dd]* COPYRIGHT This* [Cc]hange* "$out/share/doc/nauty"
2018-12-08 20:58:45 +00:00
cp *.h $dev/include/nauty
for i in *.a; do
cp "$i" "$dev/lib/lib$i";
done
2016-10-11 07:49:04 +00:00
'';
2018-12-08 20:58:45 +00:00
checkTarget = "checks";
2016-10-11 07:49:04 +00:00
meta = {
inherit version;
description = ''Programs for computing automorphism groups of graphs and digraphs'';
license = stdenv.lib.licenses.asl20;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = http://pallini.di.uniroma1.it/;
2016-10-11 07:49:04 +00:00
};
}