Skip to content

Commit 42cad8b

Browse files
gnidorahMic92
gnidorah
authored andcommittedMay 7, 2017
winusb: init at 2017-01-30
fixes #25536
1 parent 529d0e7 commit 42cad8b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
 

‎pkgs/tools/misc/winusb/default.nix

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{ stdenv, fetchFromGitHub, makeWrapper
2+
, parted, grub2_light, p7zip
3+
, wxGTK30, gksu }:
4+
5+
stdenv.mkDerivation rec {
6+
name = "winusb-unstable-2017-01-30";
7+
8+
src = fetchFromGitHub {
9+
owner = "slacka";
10+
repo = "WinUSB";
11+
rev = "599f00cdfd5c931056c576e4b2ae04d9285c4192";
12+
sha256 = "1219425d1m4463jy85nrc5xz5qy5m8svidbiwnqicy7hp8pdwa7x";
13+
};
14+
15+
buildInputs = [ wxGTK30 makeWrapper ];
16+
17+
postInstall = ''
18+
# don't write data into /
19+
substituteInPlace $out/bin/winusb \
20+
--replace /media/ /tmp/winusb/
21+
22+
wrapProgram $out/bin/winusb \
23+
--prefix PATH : ${stdenv.lib.makeBinPath [ parted grub2_light p7zip ]}
24+
wrapProgram $out/bin/winusbgui \
25+
--prefix PATH : ${stdenv.lib.makeBinPath [ gksu ]}
26+
'';
27+
28+
meta = with stdenv.lib; {
29+
description = "Create bootable USB disks from Windows ISO images";
30+
homepage = https://github.com/slacka/WinUSB;
31+
license = licenses.gpl3;
32+
maintainers = with maintainers; [ bjornfor gnidorah ];
33+
platforms = platforms.linux;
34+
};
35+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -4657,6 +4657,8 @@ with pkgs;
46574657

46584658
which = callPackage ../tools/system/which { };
46594659

4660+
winusb = callPackage ../tools/misc/winusb { };
4661+
46604662
chase = callPackage ../tools/system/chase { };
46614663

46624664
wicd = callPackage ../tools/networking/wicd { };

0 commit comments

Comments
 (0)
Please sign in to comment.