From 24ed82236a3e59f0373c9b5e87c7410edba46b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 14 Jun 2012 21:28:41 +0000 Subject: [PATCH] Changing an 'if' to cleaner optionalAttrs. svn path=/nixpkgs/trunk/; revision=34513 --- pkgs/development/libraries/libtheora/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libtheora/default.nix b/pkgs/development/libraries/libtheora/default.nix index 8514c299679..e846b213ee0 100644 --- a/pkgs/development/libraries/libtheora/default.nix +++ b/pkgs/development/libraries/libtheora/default.nix @@ -16,8 +16,8 @@ stdenv.mkDerivation ({ } # It has an old config.guess that doesn't know the mips64el. -// (if (stdenv.system == "mips64el-linux") then +// stdenv.lib.optionalAttrs (stdenv.system == "mips64el-linux") { propagatedBuildInputs = [libogg libvorbis autoconf automake libtool]; preConfigure = "rm config.guess; sh autogen.sh"; -} else {})) +})