15 , gnugrep # We can't use busybox's 'grep' as it doesn't support perl '-P' expressions.
18 stdenvNoCC.mkDerivation rec {
22 src = fetchFromGitHub {
26 sha256 = "1l09d543b73r0wbpsj5m6kski8nq48lbraq1myxhidkgl3mm3d5i";
31 url = "https://code.opensuse.org/package/bootiso/raw/3799710e3da40c1b429ea1a2ce3896d18d08a5c5/f/syslinux-lib-root.patch";
32 sha256 = "sha256-x2EJppQsPPymSrjRwEy7mylW+2OKcGzKsKF3y7fzrB8=";
37 buildInputs = [ bash ];
38 nativeBuildInputs = [ makeWrapper ];
40 makeFlags = [ "prefix=${placeholder "out"}" ];
43 substituteInPlace bootiso \
44 --replace "\$(basename \"\$0\")" "bootiso" \
45 --replace "/usr/share/syslinux" "${syslinux}/share/syslinux"
49 wrapProgram $out/bin/bootiso \
50 --prefix PATH : ${lib.makeBinPath [ bc jq coreutils util-linux wimlib file syslinux gnugrep busybox ]} \
54 description = "Script for securely creating a bootable USB device from one image file";
55 homepage = "https://github.com/jsamr/bootiso";
56 license = licenses.gpl3;
57 maintainers = with maintainers; [ muscaln ];
58 platforms = platforms.all;
59 mainProgram = "bootiso";