nixpkgs/pkgs/by-name/wo/woeusb-ng/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-19 10:51:17 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
wrapGAppsHook3,
2023-03-19 10:51:17 +00:00
p7zip,
parted,
grub2,
}:
2021-12-07 11:41:33 +00:00
with python3Packages;
buildPythonApplication rec {
pname = "woeusb-ng";
2023-03-19 10:51:17 +00:00
version = "0.2.12";
2021-12-07 11:41:33 +00:00
src = fetchFromGitHub {
owner = "WoeUSB";
repo = "WoeUSB-ng";
rev = "v${version}";
2023-03-19 10:51:17 +00:00
hash = "sha256-2opSiXbbk0zDRt6WqMh97iAt6/KhwNDopOas+OZn6TU=";
2021-12-07 11:41:33 +00:00
};
2023-03-19 10:51:17 +00:00
postPatch = ''
substituteInPlace setup.py WoeUSB/*.py miscellaneous/* \
--replace "/usr/local/" "$out/" \
--replace "/usr/" "$out/"
'';
nativeBuildInputs = [
wrapGAppsHook3
2023-03-19 10:51:17 +00:00
];
propagatedBuildInputs = [
p7zip
parted
grub2
termcolor
wxpython
2023-03-19 10:51:17 +00:00
six
];
preConfigure = ''
mkdir -p $out/bin $out/share/applications $out/share/polkit-1/actions
2021-12-07 11:41:33 +00:00
'';
2023-03-19 10:51:17 +00:00
# Unable to access the X Display, is $DISPLAY set properly?
2021-12-07 11:41:33 +00:00
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;
};
}