9 stdenv.mkDerivation (finalAttrs: {
10 pname = "mkbootimage";
11 version = "2.3-unstable-2022-05-26";
13 src = fetchFromGitHub {
15 repo = "zynq-mkbootimage";
16 rev = "872363ce32c249f8278cf107bc6d3bdeb38d849f";
17 hash = "sha256-5FPyAhUWZDwHbqmp9J2ZXTmjaXPz+dzrJMolaNwADHs=";
20 # Using elfutils because libelf is being discontinued
21 # See https://github.com/NixOS/nixpkgs/pull/271568
28 substituteInPlace Makefile --replace "git rev-parse --short HEAD" "echo ${finalAttrs.src.rev}"
34 install -Dm755 mkbootimage -t $out/bin
39 hardeningDisable = [ "fortify" ];
42 description = "Open source replacement of the Xilinx bootgen application";
43 homepage = "https://github.com/antmicro/zynq-mkbootimage";
44 license = licenses.bsd2;
45 platforms = platforms.linux;
46 maintainers = [ maintainers.fsagbuya ];
47 mainProgram = "mkbootimage";