1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 19:39:42 +01:00
nixos-hardware/nxp/common/bsp/imx-mkimage.nix

37 lines
596 B
Nix
Raw Normal View History

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