From 5880c449dde5eafe8d8412694312e11d34f73912 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Thu, 4 Apr 2019 14:48:49 +0200 Subject: [PATCH] nauty: small refactoring --- pkgs/applications/science/math/nauty/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/math/nauty/default.nix b/pkgs/applications/science/math/nauty/default.nix index 5b431f419261..b16ea82a7af3 100644 --- a/pkgs/applications/science/math/nauty/default.nix +++ b/pkgs/applications/science/math/nauty/default.nix @@ -1,4 +1,7 @@ -{stdenv, fetchurl}: +{ stdenv +, lib +, fetchurl +}: stdenv.mkDerivation rec { name = "nauty-${version}"; version = "26r11"; @@ -14,18 +17,18 @@ stdenv.mkDerivation rec { 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 + cp *.h "$dev/include/nauty" for i in *.a; do cp "$i" "$dev/lib/lib$i"; done ''; checkTarget = "checks"; - meta = { + meta = with lib; { 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; + license = licenses.asl20; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.linux; homepage = http://pallini.di.uniroma1.it/; }; }