From 82d40a0695e5143d2abed55d4c8499f5d9206063 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Fri, 27 May 2022 16:20:10 -0700 Subject: [PATCH] nauty: 27r1 -> 2.7r3 --- pkgs/applications/science/math/nauty/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/science/math/nauty/default.nix b/pkgs/applications/science/math/nauty/default.nix index c435c63ab2ef..9fae8c31ea41 100644 --- a/pkgs/applications/science/math/nauty/default.nix +++ b/pkgs/applications/science/math/nauty/default.nix @@ -4,19 +4,24 @@ }: stdenv.mkDerivation rec { pname = "nauty"; - version = "27r1"; + version = "2.7r3"; + src = fetchurl { - url = "https://pallini.di.uniroma1.it/nauty${version}.tar.gz"; - sha256 = "0xsfqfcknbd6g6wzpa5l7crmmk3bf3zjh37rhylq6b20dqcmvjkn"; + url = "https://pallini.di.uniroma1.it/nauty${builtins.replaceStrings ["."] [""] version}.tar.gz"; + sha256 = "sha256-TwZltxalP3oU6irjAFnyPQZM4/5MEsATQE724e4LiMI="; }; + outputs = [ "out" "dev" ]; + configureFlags = [ # Prevent nauty from sniffing some cpu features. While those are very # widely available, it can lead to nasty bugs when they are not available: # https://groups.google.com/forum/#!topic/sage-packaging/Pe4SRDNYlhA + "--enable-generic" # don't use -march=native "--${if stdenv.hostPlatform.sse4_2Support then "enable" else "disable"}-popcnt" "--${if stdenv.hostPlatform.sse4_aSupport then "enable" else "disable"}-clz" ]; + installPhase = '' mkdir -p "$out"/{bin,share/doc/nauty} "$dev"/{lib,include/nauty} @@ -28,7 +33,9 @@ stdenv.mkDerivation rec { cp "$i" "$dev/lib/lib$i"; done ''; + checkTarget = "checks"; + meta = with lib; { description = "Programs for computing automorphism groups of graphs and digraphs"; license = licenses.asl20;