aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libtheora
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-06-14 21:28:41 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-06-14 21:28:41 +0000
commit24ed82236a3e59f0373c9b5e87c7410edba46b9f (patch)
treedc47d9f21de4abfc8c6bd7725181a0a90930e6f3 /pkgs/development/libraries/libtheora
parent6ccf519fc6b858c1870841206443d792b9538897 (diff)
Changing an 'if' to cleaner optionalAttrs.
svn path=/nixpkgs/trunk/; revision=34513
Diffstat (limited to 'pkgs/development/libraries/libtheora')
-rw-r--r--pkgs/development/libraries/libtheora/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libtheora/default.nix b/pkgs/development/libraries/libtheora/default.nix
index 8514c299679c..e846b213ee0f 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 {}))
+})