From 3fe02f7c8b5b06b33ff037466d992aad44c7d817 Mon Sep 17 00:00:00 2001 From: "Jason \\\"Don\\\" O'Conal" Date: Sun, 7 Jul 2013 19:16:00 +1000 Subject: [PATCH] aescrypt: fix build on darwin * add libiconvOrEmpty to build inputs * add '-liconv' to LDFLAGS --- pkgs/tools/misc/aescrypt/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/aescrypt/default.nix b/pkgs/tools/misc/aescrypt/default.nix index 8e2427d6139..bec0840490d 100644 --- a/pkgs/tools/misc/aescrypt/default.nix +++ b/pkgs/tools/misc/aescrypt/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, libiconvOrEmpty }: stdenv.mkDerivation rec { version = "3.0.9"; @@ -19,14 +19,16 @@ stdenv.mkDerivation rec { cp aescrypt_keygen $out/bin ''; - buildInputs = []; + buildInputs = [ libiconvOrEmpty ]; + + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv"; - meta = { + meta = with stdenv.lib; { description = "A file encryption util that uses the industry standard Advanced Encryption Standard (AES) to easily and securely encrypt files"; - homepage = http://www.aescrypt.com/; - license = "GPLv2"; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.qknight ]; + homepage = http://www.aescrypt.com/; + license = licenses.gpl2; + maintainers = with maintainers; [ lovek323 qknight ]; + platforms = stdenv.lib.platforms.all; }; }