Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
wrapGAppsHook3,
|
|
p7zip,
|
|
parted,
|
|
grub2,
|
|
}:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "woeusb-ng";
|
|
version = "0.2.12";
|
|
format = "setuptools";
|
|
|
|
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 = [
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
p7zip
|
|
parted
|
|
grub2
|
|
termcolor
|
|
wxpython
|
|
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 = "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;
|
|
};
|
|
}
|