diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-19 12:51:17 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-19 12:51:17 +0200 |
commit | 380c03e4558a976a57e65af65a0f56a23e97f688 (patch) | |
tree | a89b7e684d1c3686d1756cdb5ef44d95d79b0d43 /pkgs/tools/misc/woeusb-ng | |
parent | 2356c1ea75666e77c31e3f32afdb73d0d21a2331 (diff) |
woeusb-ng: 0.2.10 -> 0.2.12
Diffstat (limited to 'pkgs/tools/misc/woeusb-ng')
-rw-r--r-- | pkgs/tools/misc/woeusb-ng/default.nix | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/pkgs/tools/misc/woeusb-ng/default.nix b/pkgs/tools/misc/woeusb-ng/default.nix index 6f922afdf37a7..f8078c525541f 100644 --- a/pkgs/tools/misc/woeusb-ng/default.nix +++ b/pkgs/tools/misc/woeusb-ng/default.nix @@ -1,25 +1,49 @@ -{ lib, python3Packages, fetchFromGitHub, p7zip, parted, grub2 }: +{ lib +, python3Packages +, fetchFromGitHub +, wrapGAppsHook +, p7zip +, parted +, grub2 +}: + with python3Packages; buildPythonApplication rec { pname = "woeusb-ng"; - version = "0.2.10"; - - propagatedBuildInputs = [ p7zip parted grub2 termcolor wxPython_4_0 six ]; + version = "0.2.12"; src = fetchFromGitHub { owner = "WoeUSB"; repo = "WoeUSB-ng"; rev = "v${version}"; - sha256 = "sha256-Nsdk3SMRzj1fqLrp5Na5V3rRDMcIReL8uDb8K2GQNWI="; + hash = "sha256-2opSiXbbk0zDRt6WqMh97iAt6/KhwNDopOas+OZn6TU="; }; - postInstall = '' - # TODO: the gui requires additional polkit-actions to work correctly, therefore it is currently disabled - rm $out/bin/woeusbgui + 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 ''; - # checks fail, because of polkit-actions and should be reenabled when the gui is fixed. + # Unable to access the X Display, is $DISPLAY set properly? doCheck = false; meta = with lib; { |