summary refs log tree commit diff
diff options
context:
space:
mode:
authorGergely Risko <gergely@risko.hu>2013-05-27 23:36:43 +0200
committerGergely Risko <gergely@risko.hu>2013-05-27 23:36:43 +0200
commit29b6370b0c4678ea8ae8413001d9a2911594886e (patch)
tree140bff76d46e7a50ddd6e3038749ccd58f135a86
parentd73c8ed79d95a007f6a9f92721c366382ca0bf49 (diff)
downloadnixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar.gz
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar.bz2
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar.lz
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar.xz
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.tar.zst
nixlib-29b6370b0c4678ea8ae8413001d9a2911594886e.zip
Fix vboot_reference's libuuid overriding to work on systems wo libuuid
-rw-r--r--pkgs/tools/system/vboot_reference/default.nix8
1 files 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