bootiso: init at 4.2.0
This commit is contained in:
parent
b42f9c7254
commit
289df23403
2 changed files with 50 additions and 0 deletions
48
pkgs/tools/cd-dvd/bootiso/default.nix
Normal file
48
pkgs/tools/cd-dvd/bootiso/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -1896,6 +1896,8 @@ in
|
|||
|
||||
blur-effect = callPackage ../tools/graphics/blur-effect { };
|
||||
|
||||
bootiso = callPackage ../tools/cd-dvd/bootiso { };
|
||||
|
||||
butane = callPackage ../development/tools/butane { };
|
||||
|
||||
charles = charles4;
|
||||
|
|
Loading…
Reference in a new issue