17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-psX15XicPXAsd36BhuvK0G3GQS8hV/hazzO0HByCqV4=";
29 sourceRoot=$(echo */src/unetbootin)
38 nativeBuildInputs = [ wrapQtAppsHook ];
40 # Lots of nice hard-coded paths...
42 substituteInPlace unetbootin.cpp \
43 --replace /bin/df ${coreutils}/bin/df \
44 --replace /sbin/blkid ${util-linux}/sbin/blkid \
45 --replace /sbin/fdisk ${util-linux}/sbin/fdisk \
46 --replace /sbin/sfdisk ${util-linux}/sbin/sfdisk \
47 --replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
48 --replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
49 --replace /usr/share/syslinux ${syslinux}/share/syslinux
51 substituteInPlace main.cpp \
52 --replace /usr/share/unetbootin $out/share/unetbootin
54 substituteInPlace unetbootin.desktop \
55 --replace /usr/bin $out/bin
59 lupdate unetbootin.pro
60 lrelease unetbootin.pro
66 install -Dm755 -t $out/bin unetbootin
67 install -Dm644 -t $out/share/unetbootin unetbootin_*.qm
68 install -Dm644 -t $out/share/applications unetbootin.desktop
81 "--set QT_X11_NO_MITSHM 1"
85 description = "Tool to create bootable live USB drives from ISO images";
86 homepage = "https://unetbootin.github.io/";
87 license = licenses.gpl2Plus;
88 maintainers = with maintainers; [ ebzzry ];
89 platforms = platforms.linux;
90 mainProgram = "unetbootin";