From 47d2f92a054b340dfc39d1a4fb30e26ffd023a2e Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Tue, 5 Jun 2018 03:18:11 -0400 Subject: [PATCH] make-ext4-fs: Fix cross compiling --- nixos/lib/make-ext4-fs.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/lib/make-ext4-fs.nix b/nixos/lib/make-ext4-fs.nix index 35a8afae4a7a..88be8b73ab37 100644 --- a/nixos/lib/make-ext4-fs.nix +++ b/nixos/lib/make-ext4-fs.nix @@ -6,16 +6,19 @@ , storePaths , volumeLabel , uuid ? "44444444-4444-4444-8888-888888888888" +, e2fsprogs +, libfaketime +, perl }: let - sdClosureInfo = pkgs.closureInfo { rootPaths = storePaths; }; + sdClosureInfo = pkgs.buildPackages.closureInfo { rootPaths = storePaths; }; in pkgs.stdenv.mkDerivation { name = "ext4-fs.img"; - nativeBuildInputs = with pkgs; [e2fsprogs.bin libfaketime perl]; + nativeBuildInputs = [e2fsprogs.bin libfaketime perl]; buildCommand = ''