mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-10-19 03:17:22 +02:00
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
|
|
'';
|
|
}
|