diff options
author | Mustafa Çalışkan <musfay@protonmail.com> | 2021-06-04 20:47:56 +0300 |
---|---|---|
committer | Mustafa Çalışkan <musfay@protonmail.com> | 2021-06-04 20:47:56 +0300 |
commit | 289df23403c03afd6847d313caaeff287453220c (patch) | |
tree | bbe910e39cb7a657fc36fa42a2fc5db7d1fd8bce /pkgs/tools/cd-dvd/bootiso | |
parent | b42f9c725475e85d014dede34eaa7aaf1483b223 (diff) | |
download | nixlib-289df23403c03afd6847d313caaeff287453220c.tar nixlib-289df23403c03afd6847d313caaeff287453220c.tar.gz nixlib-289df23403c03afd6847d313caaeff287453220c.tar.bz2 nixlib-289df23403c03afd6847d313caaeff287453220c.tar.lz nixlib-289df23403c03afd6847d313caaeff287453220c.tar.xz nixlib-289df23403c03afd6847d313caaeff287453220c.tar.zst nixlib-289df23403c03afd6847d313caaeff287453220c.zip |
bootiso: init at 4.2.0
Diffstat (limited to 'pkgs/tools/cd-dvd/bootiso')
-rw-r--r-- | pkgs/tools/cd-dvd/bootiso/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/cd-dvd/bootiso/default.nix b/pkgs/tools/cd-dvd/bootiso/default.nix new file mode 100644 index 000000000000..e6a902488599 --- /dev/null +++ b/pkgs/tools/cd-dvd/bootiso/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, bash +, makeWrapper +, bc +, jq +, 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 = pname; + rev = "v${version}"; + sha256 = "1l09d543b73r0wbpsj5m6kski8nq48lbraq1myxhidkgl3mm3d5i"; + }; + + strictDeps = true; + buildInputs = [ bash ]; + nativeBuildInputs = [ makeWrapper ]; + postPatch = '' + patchShebangs --host bootiso + ''; + + makeFlags = [ "prefix=${placeholder "out"}" ]; + + postInstall = '' + wrapProgram $out/bin/bootiso \ + --prefix PATH : ${lib.makeBinPath [ bc jq wimlib file syslinux gnugrep busybox ]} \ + --prefix BOOTISO_SYSLINUX_LIB_ROOT : ${syslinux}/share/syslinux + ''; + + 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; [ musfay ]; + platforms = platforms.all; + }; +} |