mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00

This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, wrapGAppsHook3
|
|
, 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 = [
|
|
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 = "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;
|
|
};
|
|
}
|