File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -4657,6 +4657,8 @@ with pkgs;
4657
4657
4658
4658
which = callPackage ../tools/system/which { };
4659
4659
4660
+ winusb = callPackage ../tools/misc/winusb { };
4661
+
4660
4662
chase = callPackage ../tools/system/chase { };
4661
4663
4662
4664
wicd = callPackage ../tools/networking/wicd { };
You can’t perform that action at this time.
0 commit comments