Move unzip to nativeBuildInputs

Otherwise the wrong binary is provided when cross compiling
This commit is contained in:
Sandro 2022-02-08 12:19:49 +01:00 committed by GitHub
parent bfaaa7851f
commit da2dfce578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ let
buildZipPackage = { name, src }: buildZipPackage = { name, src }:
stdenv.mkDerivation { stdenv.mkDerivation {
inherit name src; inherit name src;
buildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];
buildCommand = '' buildCommand = ''
unzip $src unzip $src
baseDir=$(find . -type d -mindepth 1 -maxdepth 1) baseDir=$(find . -type d -mindepth 1 -maxdepth 1)