depot/third_party/nixpkgs/pkgs/tools/misc/woeusb-ng/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

56 lines
1.1 KiB
Nix

{ lib
, python3Packages
, fetchFromGitHub
, wrapGAppsHook
, p7zip
, parted
, grub2
}:
with python3Packages;
buildPythonApplication rec {
pname = "woeusb-ng";
version = "0.2.12";
src = fetchFromGitHub {
owner = "WoeUSB";
repo = "WoeUSB-ng";
rev = "v${version}";
hash = "sha256-2opSiXbbk0zDRt6WqMh97iAt6/KhwNDopOas+OZn6TU=";
};
postPatch = ''
substituteInPlace setup.py WoeUSB/*.py miscellaneous/* \
--replace "/usr/local/" "$out/" \
--replace "/usr/" "$out/"
'';
nativeBuildInputs = [
wrapGAppsHook
];
propagatedBuildInputs = [
p7zip
parted
grub2
termcolor
wxPython_4_2
six
];
preConfigure = ''
mkdir -p $out/bin $out/share/applications $out/share/polkit-1/actions
'';
# Unable to access the X Display, is $DISPLAY set properly?
doCheck = false;
meta = with lib; {
description = "A tool to create a Windows USB stick installer from a real Windows DVD or image";
homepage = "https://github.com/WoeUSB/WoeUSB-ng";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ stunkymonkey ];
platforms = platforms.linux;
};
}