From 2253b3e7605369f75109e0798d20903c762b8a0c Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Sat, 8 Dec 2018 21:58:45 +0100 Subject: [PATCH] nauty: also install libs --- pkgs/applications/science/math/nauty/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/nauty/default.nix b/pkgs/applications/science/math/nauty/default.nix index 9639376fbda..5b431f41926 100644 --- a/pkgs/applications/science/math/nauty/default.nix +++ b/pkgs/applications/science/math/nauty/default.nix @@ -6,13 +6,20 @@ stdenv.mkDerivation rec { url = "http://pallini.di.uniroma1.it/nauty${version}.tar.gz"; sha256 = "05z6mk7c31j70md83396cdjmvzzip1hqb88pfszzc6k4gy8h3m2y"; }; + outputs = [ "out" "dev" ]; buildInputs = []; installPhase = '' - mkdir -p "$out"/{bin,share/doc/nauty} + mkdir -p "$out"/{bin,share/doc/nauty} "$dev"/{lib,include/nauty} - cp $(find . -type f -perm -111 \! -name '*.*' ) "$out/bin" + find . -type f -perm -111 \! -name '*.*' \! -name configure -exec cp '{}' "$out/bin" \; cp [Rr][Ee][Aa][Dd]* COPYRIGHT This* [Cc]hange* "$out/share/doc/nauty" + + cp *.h $dev/include/nauty + for i in *.a; do + cp "$i" "$dev/lib/lib$i"; + done ''; + checkTarget = "checks"; meta = { inherit version; description = ''Programs for computing automorphism groups of graphs and digraphs'';