From 29b6370b0c4678ea8ae8413001d9a2911594886e Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Mon, 27 May 2013 23:36:43 +0200 Subject: [PATCH] Fix vboot_reference's libuuid overriding to work on systems wo libuuid --- pkgs/tools/system/vboot_reference/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/vboot_reference/default.nix b/pkgs/tools/system/vboot_reference/default.nix index 257a4ec4fd0b..4c3c58b35cdd 100644 --- a/pkgs/tools/system/vboot_reference/default.nix +++ b/pkgs/tools/system/vboot_reference/default.nix @@ -16,9 +16,11 @@ in stdenv.mkDerivation { sha256 = "00qhwhh5ygrcfm9is8hrk1spqdvfs6aa744h10jbr03zics5bvac"; }; - buildInputs = [ pkgconfig openssl - (stdenv.lib.overrideDerivation libuuid - (args: { configureFlags = args.configureFlags + " --enable-static"; })) ]; + buildInputs = [ pkgconfig openssl ] ++ + (if libuuid == null + then [] + else [ (stdenv.lib.overrideDerivation libuuid + (args: { configureFlags = args.configureFlags + " --enable-static"; })) ]); buildPhase = '' make ARCH=${arch} `pwd`/build/cgpt/cgpt