From cd7c5fe19820368c91b1305c475348848bf32e95 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 10 May 2014 14:04:13 -0500 Subject: [PATCH] Allow dar to build on Darwin --- pkgs/tools/archivers/dar/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/archivers/dar/default.nix b/pkgs/tools/archivers/dar/default.nix index 9309886db806..17b0b77f8724 100644 --- a/pkgs/tools/archivers/dar/default.nix +++ b/pkgs/tools/archivers/dar/default.nix @@ -8,7 +8,8 @@ stdenv.mkDerivation rec { sha256 = "0psahvnrkljqg9507dk0vq05w8vilpm98igjrcjkqdirqcfd2py1"; }; - buildInputs = [ zlib bzip2 openssl attr lzo libgcrypt e2fsprogs ]; + buildInputs = [ zlib bzip2 openssl lzo libgcrypt ] + ++ stdenv.lib.optional stdenv.isLinux [ attr e2fsprogs ]; configureFlags = "--disable-dar-static"; @@ -16,6 +17,6 @@ stdenv.mkDerivation rec { homepage = http://dar.linux.free.fr/; description = "Disk ARchiver, allows backing up files into indexed archives"; maintainers = [ stdenv.lib.maintainers.viric ]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; }