diff options
| -rw-r--r-- | crn/packages/patches/woeusb-include-gui.patch | 12 | ||||
| -rw-r--r-- | crn/packages/patches/woeusb-ntfs.patch | 13 | ||||
| -rw-r--r-- | crn/packages/python-xyz.scm | 49 |
3 files changed, 74 insertions, 0 deletions
diff --git a/crn/packages/patches/woeusb-include-gui.patch b/crn/packages/patches/woeusb-include-gui.patch new file mode 100644 index 0000000..2a7cdf6 --- /dev/null +++ b/crn/packages/patches/woeusb-include-gui.patch @@ -0,0 +1,12 @@ +diff -r -u a/miscellaneous/com.github.woeusb.woeusb-ng.policy b/miscellaneous/com.github.woeusb.woeusb-ng.policy +--- a/miscellaneous/com.github.woeusb.woeusb-ng.policy 2026-06-29 13:43:15.989599585 -0400 ++++ b/miscellaneous/com.github.woeusb.woeusb-ng.policy 2026-06-29 13:43:19.805539285 -0400 +@@ -22,7 +22,7 @@ + <allow_active>auth_admin_keep</allow_active> + </defaults> + +- <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/woeusbgui</annotate> ++ <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/woeusbgui</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> + </policyconfig> diff --git a/crn/packages/patches/woeusb-ntfs.patch b/crn/packages/patches/woeusb-ntfs.patch new file mode 100644 index 0000000..615df0c --- /dev/null +++ b/crn/packages/patches/woeusb-ntfs.patch @@ -0,0 +1,13 @@ +diff --git a/src/WoeUSB/core.py b/src/WoeUSB/core.py +index 1392b2f..a394f93 100644 +--- a/src/WoeUSB/core.py ++++ b/src/WoeUSB/core.py +@@ -435,6 +435,8 @@ def mount_target_filesystem(target_partition, target_fs_mountpoint): + return 1 + + if subprocess.run(["mount", ++ "-t", "ntfs3", ++ "-o", "rw", + target_partition, + target_fs_mountpoint]).returncode != 0: + utils.print_with_color(_("Error: Unable to mount target media"), "red")
\ No newline at end of file diff --git a/crn/packages/python-xyz.scm b/crn/packages/python-xyz.scm new file mode 100644 index 0000000..2f7fa2c --- /dev/null +++ b/crn/packages/python-xyz.scm @@ -0,0 +1,49 @@ +(define-module (crn packages python-xyz)) +(use-modules (crn packages) + (guix git) + (guix git-download) + (guix gexp) + (guix download) + (guix packages) + (guix licenses) + (guix build-system pyproject) + (guix utils) + (gnu packages bootloaders) + (gnu packages compression) + (gnu packages disk) + (gnu packages linux) + (gnu packages python-build) + (gnu packages python-xyz) + (gnu packages wxwidgets)) + +(define-public python-woeusb-ng + (package + (name "python-woeusb-ng") + (version "0.2.12-20260125") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WoeUSB/WoeUSB-ng") + (commit "cc52ffc"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qabby0cfdjn55ipkvz7i9shcwpcll5wbnzq0ff5mdnqrjmxgyjd")) + (patches (crn/search-patches "woeusb-include-gui.patch" + "woeusb-ntfs.patch")))) + (build-system pyproject-build-system) + (inputs (list )) + (propagated-inputs (list python-termcolor python-wxpython parted 7zip ntfs-3g grub-pc)) + (native-inputs (list python-setuptools)) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'sanity-check) + (delete 'check)))) + (home-page "https://github.com/WoeUSB/WoeUSB-ng") + (synopsis + "WoeUSB-ng is a simple tool that enable you to create your own usb stick windows installer from an iso image or a real DVD. This is a rewrite of original WoeUSB.") + (description + "@code{WoeUSB-ng} is a simple tool that enable you to create your own usb stick +windows installer from an iso image or a real DVD. This is a rewrite of original +@code{WoeUSB}.") + (license #f))) |
