16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 sha256 = "sha256-psX15XicPXAsd36BhuvK0G3GQS8hV/hazzO0HByCqV4=";
28 sourceRoot=$(echo */src/unetbootin)
37 nativeBuildInputs = [ wrapQtAppsHook ];
39 # Lots of nice hard-coded paths...
41 substituteInPlace unetbootin.cpp \
42 --replace /bin/df ${coreutils}/bin/df \
43 --replace /sbin/blkid ${util-linux}/sbin/blkid \
44 --replace /sbin/fdisk ${util-linux}/sbin/fdisk \
45 --replace /sbin/sfdisk ${util-linux}/sbin/sfdisk \
46 --replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
47 --replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
48 --replace /usr/share/syslinux ${syslinux}/share/syslinux
50 substituteInPlace main.cpp \
51 --replace /usr/share/unetbootin $out/share/unetbootin
53 substituteInPlace unetbootin.desktop \
54 --replace /usr/bin $out/bin
58 lupdate unetbootin.pro
59 lrelease unetbootin.pro
65 install -Dm755 -t $out/bin unetbootin
66 install -Dm644 -t $out/share/unetbootin unetbootin_*.qm
67 install -Dm644 -t $out/share/applications unetbootin.desktop
73 "--prefix PATH : ${lib.makeBinPath [ mtools p7zip which ]}"
74 "--set QT_X11_NO_MITSHM 1"
78 description = "Tool to create bootable live USB drives from ISO images";
79 homepage = "https://unetbootin.github.io/";
80 license = licenses.gpl2Plus;
81 maintainers = with maintainers; [ ebzzry ];
82 platforms = platforms.linux;
83 mainProgram = "unetbootin";