Skip to content

Commit cf7d701

Browse files
committedNov 2, 2017
unetbootin: 655 -> 657 and make it build again
1 parent 49f6893 commit cf7d701

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
 

‎pkgs/tools/cd-dvd/unetbootin/default.nix

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
stdenv.mkDerivation rec {
55
name = "unetbootin-${version}";
6-
version = "655";
6+
version = "657";
77

88
src = fetchFromGitHub {
99
owner = "unetbootin";
1010
repo = "unetbootin";
1111
rev = version;
12-
sha256 = "1gis75vy172k7lgh8bwgap74s259y9x1wg3rkqhhqncl2vv0w1py";
12+
sha256 = "18bbcrjk6ladr46kl3dvqz5pq2xcv4nnwmajqllb4sl3k1xqsngy";
1313
};
1414

15-
sourceRoot = "${name}-src/src/unetbootin";
15+
sourceRoot = "source/src/unetbootin";
1616

1717
buildInputs = [ qt4 ];
1818
nativeBuildInputs = [ makeWrapper qmake4Hook ];
@@ -42,18 +42,17 @@ stdenv.mkDerivation rec {
4242
'';
4343

4444
installPhase = ''
45-
mkdir -p $out/bin
46-
cp unetbootin $out/bin
45+
runHook preInstall
4746
48-
mkdir -p $out/share/unetbootin
49-
cp unetbootin_*.qm $out/share/unetbootin
50-
51-
mkdir -p $out/share/applications
52-
cp unetbootin.desktop $out/share/applications
47+
install -Dm755 -t $out/bin unetbootin
48+
install -Dm644 -t $out/share/unetbootin unetbootin_*.qm
49+
install -Dm644 -t $out/share/applications unetbootin.desktop
5350
5451
wrapProgram $out/bin/unetbootin \
5552
--prefix PATH : ${stdenv.lib.makeBinPath [ mtools p7zip which ]} \
5653
--set QT_X11_NO_MITSHM 1
54+
55+
runHook postInstall
5756
'';
5857

5958
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)
Please sign in to comment.