diff options
author | Rommel M. Martinez <ebzzry@gmail.com> | 2015-09-15 05:11:34 +0800 |
---|---|---|
committer | Rommel M. Martinez <ebzzry@gmail.com> | 2015-09-15 05:11:34 +0800 |
commit | 1b262abd984dbf41b1ec251868d9b03fdd0d0c5f (patch) | |
tree | 39b79508c53d738cd1b4bdde2214a311a35b4f84 /pkgs/tools | |
parent | bc6c6f144461bb3ce020040db5fcefe6484c0502 (diff) | |
download | nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar.gz nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar.bz2 nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar.lz nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar.xz nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.tar.zst nixlib-1b262abd984dbf41b1ec251868d9b03fdd0d0c5f.zip |
unetbootin: 608 -> 613
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/cd-dvd/unetbootin/default.nix | 92 |
1 files changed, 45 insertions, 47 deletions
diff --git a/pkgs/tools/cd-dvd/unetbootin/default.nix b/pkgs/tools/cd-dvd/unetbootin/default.nix index 9c538842816f..1234ecd770bb 100644 --- a/pkgs/tools/cd-dvd/unetbootin/default.nix +++ b/pkgs/tools/cd-dvd/unetbootin/default.nix @@ -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 { +stdenv.mkDerivation rec { name = "unetbootin-${version}"; + version = "613"; src = fetchurl { url = "mirror://sourceforge/unetbootin/UNetbootin/${version}/unetbootin-source-${version}.tar.gz"; - sha256 = "1010ccdrblsjr5zid6wl3c3b75ld37lrr1a1xc6dlrhz1gvcb6ff"; + sha256 = "1f389z5lqimp4hlxm6zlrh1ja474r6ivzb9r43i9bvf0z1n21f0q"; }; sourceRoot = "."; @@ -15,49 +15,47 @@ stdenv.mkDerivation { buildInputs = [ makeWrapper qt4 ]; # Lots of nice hard-coded paths... - postUnpack = - '' - 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 /usr/share/syslinux ${syslinux}/share/syslinux - substituteInPlace main.cpp \ - --replace /usr/share/unetbootin $out/share/unetbootin - substituteInPlace unetbootin.desktop \ - --replace /usr/bin $out/bin - ''; - - buildPhase = - '' - lupdate unetbootin.pro - lrelease unetbootin.pro - qmake - make - ''; - - installPhase = - '' - mkdir -p $out/bin - cp unetbootin $out/bin - - mkdir -p $out/share/unetbootin - cp unetbootin_*.qm $out/share/unetbootin - - mkdir -p $out/share/applications - cp unetbootin.desktop $out/share/applications - - wrapProgram $out/bin/unetbootin \ - --prefix PATH : ${which}/bin:${p7zip}/bin:${mtools}/bin - ''; - - meta = { + postUnpack = '' + 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 /usr/share/syslinux ${syslinux}/share/syslinux + substituteInPlace main.cpp \ + --replace /usr/share/unetbootin $out/share/unetbootin + substituteInPlace unetbootin.desktop \ + --replace /usr/bin $out/bin + ''; + + buildPhase = '' + lupdate unetbootin.pro + lrelease unetbootin.pro + qmake + make + ''; + + installPhase = '' + mkdir -p $out/bin + cp unetbootin $out/bin + + mkdir -p $out/share/unetbootin + cp unetbootin_*.qm $out/share/unetbootin + + mkdir -p $out/share/applications + cp unetbootin.desktop $out/share/applications + + wrapProgram $out/bin/unetbootin \ + --prefix PATH : ${which}/bin:${p7zip}/bin:${mtools}/bin + ''; + + meta = with stdenv.lib; { homepage = http://unetbootin.sourceforge.net/; description = "A tool to create bootable live USB drives from ISO images"; - license = stdenv.lib.licenses.gpl2Plus; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = [ maintainers.ebzzry ]; }; } |