Merge pull request #221914 from wegank/woeusb-ng-bump
woeusb-ng: 0.2.10 -> 0.2.12
This commit is contained in:
commit
5dcdfd4b1c
|
@ -1,25 +1,49 @@
|
||||||
{ lib, python3Packages, fetchFromGitHub, p7zip, parted, grub2 }:
|
{ lib
|
||||||
|
, python3Packages
|
||||||
|
, fetchFromGitHub
|
||||||
|
, wrapGAppsHook
|
||||||
|
, p7zip
|
||||||
|
, parted
|
||||||
|
, grub2
|
||||||
|
}:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "woeusb-ng";
|
pname = "woeusb-ng";
|
||||||
version = "0.2.10";
|
version = "0.2.12";
|
||||||
|
|
||||||
propagatedBuildInputs = [ p7zip parted grub2 termcolor wxPython_4_0 six ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "WoeUSB";
|
owner = "WoeUSB";
|
||||||
repo = "WoeUSB-ng";
|
repo = "WoeUSB-ng";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Nsdk3SMRzj1fqLrp5Na5V3rRDMcIReL8uDb8K2GQNWI=";
|
hash = "sha256-2opSiXbbk0zDRt6WqMh97iAt6/KhwNDopOas+OZn6TU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postPatch = ''
|
||||||
# TODO: the gui requires additional polkit-actions to work correctly, therefore it is currently disabled
|
substituteInPlace setup.py WoeUSB/*.py miscellaneous/* \
|
||||||
rm $out/bin/woeusbgui
|
--replace "/usr/local/" "$out/" \
|
||||||
|
--replace "/usr/" "$out/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# checks fail, because of polkit-actions and should be reenabled when the gui is fixed.
|
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;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user