1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-20 09:59:42 +01:00
nixos-hardware/nxp/common/bsp/imx-mkimage.nix
Ganga Ram f1b2f71c86 Update repository path for nxp/imx
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-13 16:36:44 +00:00

36 lines
596 B
Nix

{ 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
'';
}