2023-01-18 12:49:38 +00:00
|
|
|
{ pkgs }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
|
|
pname = "imx-mkimage";
|
|
|
|
version = "lf-5.15.32-2.0.0";
|
|
|
|
src = fetchgit {
|
2024-02-13 13:05:03 +00:00
|
|
|
url = "https://github.com/nxp-imx/imx-mkimage.git";
|
2023-01-18 12:49:38 +00:00
|
|
|
rev = version;
|
2024-02-13 13:05:03 +00:00
|
|
|
sha256 = "sha256-vJuWK2GOAtps798QY1I6xIcixgenJmntrh24s9KtsKU=";
|
2023-01-18 12:49:38 +00:00
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
|
2024-02-13 13:05:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'CC = gcc' 'CC = clang'
|
|
|
|
'';
|
|
|
|
|
2023-01-18 12:49:38 +00:00
|
|
|
nativeBuildInputs = [
|
2024-02-13 13:05:03 +00:00
|
|
|
clang
|
2023-01-18 12:49:38 +00:00
|
|
|
git
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
git
|
|
|
|
glibc.static
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 0755 mkimage_imx8 $out
|
|
|
|
'';
|
|
|
|
}
|