Skip to content

Commit

Permalink
winusb: init at 2017-01-30
Browse files Browse the repository at this point in the history
fixes #25536
  • Loading branch information
gnidorah authored and Mic92 committed May 7, 2017
1 parent 529d0e7 commit 42cad8b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/tools/misc/winusb/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, makeWrapper
, parted, grub2_light, p7zip
, wxGTK30, gksu }:

stdenv.mkDerivation rec {
name = "winusb-unstable-2017-01-30";

src = fetchFromGitHub {
owner = "slacka";
repo = "WinUSB";
rev = "599f00cdfd5c931056c576e4b2ae04d9285c4192";
sha256 = "1219425d1m4463jy85nrc5xz5qy5m8svidbiwnqicy7hp8pdwa7x";
};

buildInputs = [ wxGTK30 makeWrapper ];

postInstall = ''
# don't write data into /
substituteInPlace $out/bin/winusb \
--replace /media/ /tmp/winusb/
wrapProgram $out/bin/winusb \
--prefix PATH : ${stdenv.lib.makeBinPath [ parted grub2_light p7zip ]}
wrapProgram $out/bin/winusbgui \
--prefix PATH : ${stdenv.lib.makeBinPath [ gksu ]}
'';

meta = with stdenv.lib; {
description = "Create bootable USB disks from Windows ISO images";
homepage = https://github.com/slacka/WinUSB;
license = licenses.gpl3;
maintainers = with maintainers; [ bjornfor gnidorah ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4657,6 +4657,8 @@ with pkgs;

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

winusb = callPackage ../tools/misc/winusb { };

chase = callPackage ../tools/system/chase { };

wicd = callPackage ../tools/networking/wicd { };
Expand Down

0 comments on commit 42cad8b

Please sign in to comment.