Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.6 KiB
Nix
75 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
bash,
|
|
makeWrapper,
|
|
bc,
|
|
jq,
|
|
coreutils,
|
|
util-linux,
|
|
wimlib,
|
|
file,
|
|
syslinux,
|
|
busybox,
|
|
gnugrep, # We can't use busybox's 'grep' as it doesn't support perl '-P' expressions.
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "bootiso";
|
|
version = "4.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jsamr";
|
|
repo = "bootiso";
|
|
rev = "v${version}";
|
|
sha256 = "1l09d543b73r0wbpsj5m6kski8nq48lbraq1myxhidkgl3mm3d5i";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://code.opensuse.org/package/bootiso/raw/3799710e3da40c1b429ea1a2ce3896d18d08a5c5/f/syslinux-lib-root.patch";
|
|
sha256 = "sha256-x2EJppQsPPymSrjRwEy7mylW+2OKcGzKsKF3y7fzrB8=";
|
|
})
|
|
];
|
|
|
|
strictDeps = true;
|
|
buildInputs = [ bash ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace bootiso \
|
|
--replace "\$(basename \"\$0\")" "bootiso" \
|
|
--replace "/usr/share/syslinux" "${syslinux}/share/syslinux"
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/bootiso \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
bc
|
|
jq
|
|
coreutils
|
|
util-linux
|
|
wimlib
|
|
file
|
|
syslinux
|
|
gnugrep
|
|
busybox
|
|
]
|
|
} \
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Script for securely creating a bootable USB device from one image file";
|
|
homepage = "https://github.com/jsamr/bootiso";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ muscaln ];
|
|
platforms = platforms.all;
|
|
mainProgram = "bootiso";
|
|
};
|
|
}
|