mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 19:39:42 +01:00
f1b2f71c86
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
36 lines
596 B
Nix
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
|
|
'';
|
|
}
|