Merge pull request #9864 from ebzzry/unetbootin-613
unetbootin: 608 -> 613
This commit is contained in:
commit
f3519eb040
@ -1,13 +1,13 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, qt4, utillinux, coreutils, which, p7zip, mtools, syslinux }:
|
{ stdenv, fetchurl, makeWrapper, qt4, utillinux, coreutils, which
|
||||||
|
, p7zip, mtools, syslinux }:
|
||||||
|
|
||||||
let version = "608"; in
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "unetbootin-${version}";
|
name = "unetbootin-${version}";
|
||||||
|
version = "613";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/unetbootin/UNetbootin/${version}/unetbootin-source-${version}.tar.gz";
|
url = "mirror://sourceforge/unetbootin/UNetbootin/${version}/unetbootin-source-${version}.tar.gz";
|
||||||
sha256 = "1010ccdrblsjr5zid6wl3c3b75ld37lrr1a1xc6dlrhz1gvcb6ff";
|
sha256 = "1f389z5lqimp4hlxm6zlrh1ja474r6ivzb9r43i9bvf0z1n21f0q";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
@ -15,49 +15,47 @@ stdenv.mkDerivation {
|
|||||||
buildInputs = [ makeWrapper qt4 ];
|
buildInputs = [ makeWrapper qt4 ];
|
||||||
|
|
||||||
# Lots of nice hard-coded paths...
|
# Lots of nice hard-coded paths...
|
||||||
postUnpack =
|
postUnpack = ''
|
||||||
''
|
substituteInPlace unetbootin.cpp \
|
||||||
substituteInPlace unetbootin.cpp \
|
--replace /sbin/fdisk ${utillinux}/sbin/fdisk \
|
||||||
--replace /sbin/fdisk ${utillinux}/sbin/fdisk \
|
--replace /sbin/sfdisk ${utillinux}/sbin/sfdisk \
|
||||||
--replace /sbin/sfdisk ${utillinux}/sbin/sfdisk \
|
--replace /sbin/blkid ${utillinux}/sbin/blkid \
|
||||||
--replace /sbin/blkid ${utillinux}/sbin/blkid \
|
--replace /bin/df ${coreutils}/bin/df \
|
||||||
--replace /bin/df ${coreutils}/bin/df \
|
--replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
|
||||||
--replace /usr/bin/syslinux ${syslinux}/bin/syslinux \
|
--replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
|
||||||
--replace /usr/bin/extlinux ${syslinux}/sbin/extlinux \
|
--replace /usr/share/syslinux ${syslinux}/share/syslinux
|
||||||
--replace /usr/share/syslinux ${syslinux}/share/syslinux
|
substituteInPlace main.cpp \
|
||||||
substituteInPlace main.cpp \
|
--replace /usr/share/unetbootin $out/share/unetbootin
|
||||||
--replace /usr/share/unetbootin $out/share/unetbootin
|
substituteInPlace unetbootin.desktop \
|
||||||
substituteInPlace unetbootin.desktop \
|
--replace /usr/bin $out/bin
|
||||||
--replace /usr/bin $out/bin
|
'';
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase =
|
buildPhase = ''
|
||||||
''
|
lupdate unetbootin.pro
|
||||||
lupdate unetbootin.pro
|
lrelease unetbootin.pro
|
||||||
lrelease unetbootin.pro
|
qmake
|
||||||
qmake
|
make
|
||||||
make
|
'';
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase =
|
installPhase = ''
|
||||||
''
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/bin
|
cp unetbootin $out/bin
|
||||||
cp unetbootin $out/bin
|
|
||||||
|
|
||||||
mkdir -p $out/share/unetbootin
|
mkdir -p $out/share/unetbootin
|
||||||
cp unetbootin_*.qm $out/share/unetbootin
|
cp unetbootin_*.qm $out/share/unetbootin
|
||||||
|
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
cp unetbootin.desktop $out/share/applications
|
cp unetbootin.desktop $out/share/applications
|
||||||
|
|
||||||
wrapProgram $out/bin/unetbootin \
|
wrapProgram $out/bin/unetbootin \
|
||||||
--prefix PATH : ${which}/bin:${p7zip}/bin:${mtools}/bin
|
--prefix PATH : ${which}/bin:${p7zip}/bin:${mtools}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
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";
|
description = "A tool to create bootable live USB drives from ISO images";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = [ maintainers.ebzzry ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user