unetbootin: 613 -> 655
This commit is contained in:
parent
767b2ae327
commit
b224644795
@ -1,31 +1,37 @@
|
||||
{ stdenv, fetchurl, makeWrapper, qt4, utillinux, coreutils, which, qmake4Hook
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, qt4, utillinux, coreutils, which, qmake4Hook
|
||||
, p7zip, mtools, syslinux }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "unetbootin-${version}";
|
||||
version = "613";
|
||||
version = "655";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/unetbootin/UNetbootin/${version}/unetbootin-source-${version}.tar.gz";
|
||||
sha256 = "1f389z5lqimp4hlxm6zlrh1ja474r6ivzb9r43i9bvf0z1n21f0q";
|
||||
src = fetchFromGitHub {
|
||||
owner = "unetbootin";
|
||||
repo = "unetbootin";
|
||||
rev = version;
|
||||
sha256 = "1gis75vy172k7lgh8bwgap74s259y9x1wg3rkqhhqncl2vv0w1py";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
sourceRoot = "${name}-src/src/unetbootin";
|
||||
|
||||
buildInputs = [ makeWrapper qt4 qmake4Hook ];
|
||||
buildInputs = [ qt4 ];
|
||||
nativeBuildInputs = [ makeWrapper qmake4Hook ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Lots of nice hard-coded paths...
|
||||
postUnpack = ''
|
||||
postPatch = ''
|
||||
substituteInPlace unetbootin.cpp \
|
||||
--replace /sbin/fdisk ${utillinux}/sbin/fdisk \
|
||||
--replace /sbin/sfdisk ${utillinux}/sbin/sfdisk \
|
||||
--replace /sbin/blkid ${utillinux}/sbin/blkid \
|
||||
--replace /bin/df ${coreutils}/bin/df \
|
||||
--replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
|
||||
--replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
|
||||
--replace /bin/df ${coreutils}/bin/df \
|
||||
--replace /sbin/blkid ${utillinux}/sbin/blkid \
|
||||
--replace /sbin/fdisk ${utillinux}/sbin/fdisk \
|
||||
--replace /sbin/sfdisk ${utillinux}/sbin/sfdisk \
|
||||
--replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
|
||||
--replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
|
||||
--replace /usr/share/syslinux ${syslinux}/share/syslinux
|
||||
|
||||
substituteInPlace main.cpp \
|
||||
--replace /usr/share/unetbootin $out/share/unetbootin
|
||||
|
||||
substituteInPlace unetbootin.desktop \
|
||||
--replace /usr/bin $out/bin
|
||||
'';
|
||||
@ -46,15 +52,15 @@ stdenv.mkDerivation rec {
|
||||
cp unetbootin.desktop $out/share/applications
|
||||
|
||||
wrapProgram $out/bin/unetbootin \
|
||||
--prefix PATH : ${stdenv.lib.makeBinPath [ which p7zip mtools ]} \
|
||||
--prefix PATH : ${stdenv.lib.makeBinPath [ mtools p7zip which ]} \
|
||||
--set QT_X11_NO_MITSHM 1
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://unetbootin.sourceforge.net/;
|
||||
homepage = http://unetbootin.sourceforge.net/;
|
||||
description = "A tool to create bootable live USB drives from ISO images";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ebzzry ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ebzzry ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user