From unknown Sat Aug 16 10:45:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65784 <65784@debbugs.gnu.org> To: bug#65784 <65784@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add woeusb. Reply-To: bug#65784 <65784@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:45:59 +0000 retitle 65784 [PATCH] gnu: Add woeusb. reassign 65784 guix-patches submitter 65784 Adam Kandur severity 65784 normal tag 65784 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 06 09:55:52 2023 Received: (at submit) by debbugs.gnu.org; 6 Sep 2023 13:55:52 +0000 Received: from localhost ([127.0.0.1]:34701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdt0Z-0002ML-KA for submit@debbugs.gnu.org; Wed, 06 Sep 2023 09:55:52 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qds9u-0000f4-Ch for submit@debbugs.gnu.org; Wed, 06 Sep 2023 09:01:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qds9l-0003nC-Ub for guix-patches@gnu.org; Wed, 06 Sep 2023 09:01:18 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qds9i-0002VF-Ou for guix-patches@gnu.org; Wed, 06 Sep 2023 09:01:17 -0400 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b962535808so57854461fa.0 for ; Wed, 06 Sep 2023 06:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694005268; x=1694610068; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nTrsnsGzE80vHXq2WW6w3S6CKfkco44C7ynMgAT/DIU=; b=dk9runDWnM6A+S/vl7Uafb6GPw9cAalsLdshUwTY470sSdAyiK7+x2PwwGfDobW1Su KMKEnPidhz9An1DbqVWGFX1no2a8R8aYg/cjWvzfAQk6DiqvrKBojXRXc0P8s2bax7FE Cq8A/S2rFHx2S9HZOa07pCqml6dRgnd8q/hw9YEi31zx0eXghUG7OwVA4AhH1Nl6kJ1G 5WbcV2Toe3RovElvK2gbxcEkLg6YCjlrcicYnf4/NG8sMd9Nr5w+rGWfNs1Va7FqJgzT Hd3VNUumFJ0X/JAsiWeF6/axHQepkcbDV9JvZlhfzEwU4k9/Fg3DrDMdlhZRxoEzk0Lp NYkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694005268; x=1694610068; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nTrsnsGzE80vHXq2WW6w3S6CKfkco44C7ynMgAT/DIU=; b=cz9lr08h2+0Ozfp0BODhOwHuK78s3/Ho9WHingWLt/Tr2eyEgHzDpP8jFl1Gstvmn5 q7SSL2U22U+FbGb15JK14SJcqKVHK/sq/wLIA8Mb5koFOiJi0iuFU4KlTqdK3nyIHp2X eZiOH6nKhIXlszIt0DG5DkXO3fbl8GSCF1omuF21XJow+q+yHoammSg5FCA072kI4DTd J3xuovyt+LTtL6p3hPTpLLbU5qPlRhyDQhSZMnFzu6myIuq/Z7GLBtP7tU7VwqfHLkN0 1qUf6pbK16VO0+v6j4NU0C8rk62WDiI+gczRRrhLKKkCH0C7y6uGrqByplyGQczL9d9B BTMQ== X-Gm-Message-State: AOJu0YyxwDyK7V6dCyHbrC329+rWrTZGIgXiySt3DvmWqO1DMOBrn/WL BKSptzHV2CXWoNPgVMmgoGu93kIyO1dj9w== X-Google-Smtp-Source: AGHT+IFrLI+YJqHsab1o/2GoiGHvo3GWDQ6MdyX6EzRKyedKT3QfAhRNrdAiUDNPBXcgu+1xdjjPZA== X-Received: by 2002:a2e:9b50:0:b0:2bc:d7d6:258f with SMTP id o16-20020a2e9b50000000b002bcd7d6258fmr2136396ljj.35.1694005268154; Wed, 06 Sep 2023 06:01:08 -0700 (PDT) Received: from grimoire.sigma.sbrf.ru ([84.252.147.253]) by smtp.gmail.com with ESMTPSA id b19-20020a2e8953000000b002bb9b1db5b9sm3454316ljk.8.2023.09.06.06.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 06:01:07 -0700 (PDT) From: Adam Kandur To: guix-patches@gnu.org Subject: [PATCH] gnu: Add woeusb. Date: Wed, 6 Sep 2023 16:01:01 +0300 Message-ID: <20230906130103.3121-1-adam.mohidin.kandur@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=adam.mohidin.kandur@gmail.com; helo=mail-lj1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 06 Sep 2023 09:55:42 -0400 Cc: Adam Kandur X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/admin.scm (woeusb): New variable. --- gnu/packages/admin.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 604cd70..6b971e8 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2388,6 +2388,71 @@ (define-public wakelan network, which causes enabled computers to power on.") (license license:gpl2+))) +(define-public woeusb + (let ((revision "0") + ;; named branch is outdated + (commit "34b400d99d3c4089f487e1d4f7d71970b2d4429e")) + (package + (name "woeusb") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WoeUSB/WoeUSB.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05ghja2rpn4kqak9yll398na54dscsfnm3z5f2pi54lan98wzimh")))) + (build-system trivial-build-system) + (inputs + (list ntfs-3g grub ncurses parted coreutils util-linux wimlib)) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + ;; copy source + (copy-recursively (assoc-ref %build-inputs "source") ".") + ;; patch source + (substitute* "sbin/woeusb" + (("tput sgr0") (string-append (assoc-ref %build-inputs "ncurses") + "/bin/tput" + " sgr0")) + (("parted --script") + (string-append (assoc-ref %build-inputs "parted") + "/sbin/parted --script")) + (("parted \\\\") + (string-append (assoc-ref %build-inputs "parted") + "/sbin/parted \\")) + (("grub-install") (string-append (assoc-ref %build-inputs "grub") + "/sbin/grub-install")) + (("command -v mkntfs") (string-append + "command -v " + (assoc-ref %build-inputs "ntfs-3g") + "/sbin/mkntfs")) + (("command_mkntfs_ref=mkntfs") (string-append + "command_mkntfs_ref=" + (assoc-ref %build-inputs "ntfs-3g") + "/sbin/mkntfs")) + (("readlink \\\\") (string-append + (assoc-ref %build-inputs "coreutils") + "/bin/readlink \\")) + (("wimlib-imagex") (string-append + (assoc-ref %build-inputs "wimlib") + "/bin/wimlib-imagex")) + ;; could not find partprobe package + ;; as i see this command never used in the program + (("partprobe \\\\") "\\")) + ;; install phase + (install-file "sbin/woeusb" (string-append %output "/bin")) + #t))) + (home-page "https://github.com/WoeUSB/WoeUSB") + (synopsis "A Microsoft Windows® USB installation media preparer for GNU+Linux") + (description "Very usefull package for anyone who wants to make a bootable Windows® USB stick +using free and open source operating system.") + (license license:gpl3+)))) + (define-public dmidecode (package (name "dmidecode") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 05:44:20 2023 Received: (at submit) by debbugs.gnu.org; 20 Oct 2023 09:44:20 +0000 Received: from localhost ([127.0.0.1]:38702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtm3I-0000ed-7i for submit@debbugs.gnu.org; Fri, 20 Oct 2023 05:44:20 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtm3F-0000eP-NV for submit@debbugs.gnu.org; Fri, 20 Oct 2023 05:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtm2i-0001ci-W5 for guix-patches@gnu.org; Fri, 20 Oct 2023 05:43:45 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtm2h-0007UG-9j for guix-patches@gnu.org; Fri, 20 Oct 2023 05:43:44 -0400 Received: from localhost (unknown [217.155.61.229]) by mira.cbaines.net (Postfix) with ESMTPSA id 085B727BBE2; Fri, 20 Oct 2023 10:43:42 +0100 (BST) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 4d9b46f8; Fri, 20 Oct 2023 09:43:41 +0000 (UTC) References: <20230906130103.3121-1-adam.mohidin.kandur@gmail.com> User-agent: mu4e 1.10.5; emacs 28.2 From: Christopher Baines To: Adam Kandur Subject: Re: [bug#65784] [PATCH] gnu: Add woeusb. Date: Fri, 20 Oct 2023 10:42:59 +0100 In-reply-to: <20230906130103.3121-1-adam.mohidin.kandur@gmail.com> Message-ID: <87lebx4oj6.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: 65784@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Adam Kandur writes: > * gnu/packages/admin.scm (woeusb): New variable. > --- > gnu/packages/admin.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 65 insertions(+) > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index 604cd70..6b971e8 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -2388,6 +2388,71 @@ (define-public wakelan > network, which causes enabled computers to power on.") > (license license:gpl2+))) >=20=20 > +(define-public woeusb > + (let ((revision "0") > + ;; named branch is outdated > + (commit "34b400d99d3c4089f487e1d4f7d71970b2d4429e")) > + (package > + (name "woeusb") > + (version (git-version "0.0.0" revision commit)) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/WoeUSB/WoeUSB.git") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "05ghja2rpn4kqak9yll398na54dscsfnm3z5f2pi54lan98wzimh")))) > + (build-system trivial-build-system) > + (inputs > + (list ntfs-3g grub ncurses parted coreutils util-linux wimlib)) > + (arguments > + `(#:modules ((guix build utils)) > + #:builder > + (begin > + (use-modules (guix build utils)) > + ;; copy source > + (copy-recursively (assoc-ref %build-inputs "source") ".") > + ;; patch source > + (substitute* "sbin/woeusb" > + (("tput sgr0") (string-append (assoc-ref %build-inputs "ncu= rses") > + "/bin/tput" > + " sgr0")) > + (("parted --script") > + (string-append (assoc-ref %build-inputs "parted") > + "/sbin/parted --script")) > + (("parted \\\\") > + (string-append (assoc-ref %build-inputs "parted") > + "/sbin/parted \\")) > + (("grub-install") (string-append (assoc-ref %build-inputs "= grub") > + "/sbin/grub-install")) > + (("command -v mkntfs") (string-append > + "command -v " > + (assoc-ref %build-inputs "ntfs-3g") > + "/sbin/mkntfs")) > + (("command_mkntfs_ref=3Dmkntfs") (string-append > + "command_mkntfs_ref=3D" > + (assoc-ref %build-inputs "n= tfs-3g") > + "/sbin/mkntfs")) > + (("readlink \\\\") (string-append > + (assoc-ref %build-inputs "coreutils") > + "/bin/readlink \\")) > + (("wimlib-imagex") (string-append > + (assoc-ref %build-inputs "wimlib") > + "/bin/wimlib-imagex")) > + ;; could not find partprobe package > + ;; as i see this command never used in the program > + (("partprobe \\\\") "\\")) > + ;; install phase > + (install-file "sbin/woeusb" (string-append %output "/bin")) > + #t))) > + (home-page "https://github.com/WoeUSB/WoeUSB") > + (synopsis "A Microsoft Windows=C2=AE USB installation media prepar= er for GNU+Linux") > + (description "Very usefull package for anyone who wants to make a = bootable Windows=C2=AE USB stick > +using free and open source operating system.") > + (license license:gpl3+)))) > + > (define-public dmidecode > (package > (name "dmidecode") Hi Adam, Does this build for you locally? According to QA, grub is undefined, so maybe there's an import missing. Thanks, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmUyS81fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfusRAAjCt8VA5TN7Vd2E8MHzF3b3zQ1cSw1hKL rFRmK3ecCYpshS0s6xuOSKCSjpeGfPBkK/kzCBAlsOnS8TkejmZI3YZI1CQ3AAxX B6DGs8ZFU+5hqe/Sa9M03txk3iF2KqPQVfYtvKi/9ZkXBAWg3pspsLozw0Vsopcm vH0NESpXbEjq9GH35h9zNaMmNq8zyU9GAZhjnd8koXhSORa/YusiykLU1jJviaCr yjETwsYPQysrWDYk4eegRbXNYZsXKzPryujvmpNYI/ONprzkC/6gs3HvdSeVFxfC fKya9pzuozqEkhNzrZtOvaC6KobT1Yt+JvkFxXRuKn3zyEgtm1MT9LVEgfUsXSW1 e+QWnv7dcrSs1cpVAqKrEnMvthAtoMegESTF6IqbF/1GlyDiLdxnz/Tc6T4OyPDP 2OfW6JlXnZqkzskuEYeE3iyIkZNkfSZJi6rp4YmOtqYPSIs/uN0BlaJlDGgZA2Vz BZgTxkJBY00Hru/26vQJ/UaEWsTs24OcHcQaxQchUa+2LWshsvFv1XNj/wEUqSbI JWEk5fP3BiWy6W0gbILM3KfibFHZsJg5amx2OoKJaoSSQu7OZ1kIMFiWz02hqQ5I hvagkXB2XS82xFlGvVFAvx0paiBgPnd0Ey5OWNqgZ6zDPxcZyq2l5XEyR+mjaQIc w7tsoWEPWis= =Sujh -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 25 20:18:41 2023 Received: (at 65784) by debbugs.gnu.org; 26 Oct 2023 00:18:41 +0000 Received: from localhost ([127.0.0.1]:60262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvo5B-0003JN-C4 for submit@debbugs.gnu.org; Wed, 25 Oct 2023 20:18:41 -0400 Received: from mail-ua1-x930.google.com ([2607:f8b0:4864:20::930]:49463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvo58-0003J7-IV for 65784@debbugs.gnu.org; Wed, 25 Oct 2023 20:18:40 -0400 Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7b9ba0c07f9so120957241.3 for <65784@debbugs.gnu.org>; Wed, 25 Oct 2023 17:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698279482; x=1698884282; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=H8/JvFB7BN0+iThoc/w0K1adZ8qYQBLSfwJW4+9fQDs=; b=IMsDOQ2U8xXe4TUnqZkHbN9+6t+IjcSaE59oyGubA19r+vKnz3j/oVt4343PmKBxou xo/FLjv4ITFU18RFDSRARzMewgxdpaMeh6HRhsX4RxkomcCGhUCcL/QcWc2myQYj1EfC vTBCPnfHLf1xZkMoODxquLiXspQSAZaIDTJ5NIWc8q7+9ypY/kx8vT/xsF6Khqpti/Ow hUsEPxJXkldcBMPO38omSvlyib8aFKLVTYF6H+UXuEqrWYW3OTPToq25P/Y/wLoPlI/L kXR+/a797fx/s/N4j2e+jqiy+BLA+hKe4MHwQBYo3SjbX7ST4RTPWe+EgjQ/GQqHVgGm JHyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698279482; x=1698884282; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H8/JvFB7BN0+iThoc/w0K1adZ8qYQBLSfwJW4+9fQDs=; b=kOuW/Y+Bmlu0rw98oefgJbDTCU96gzHUEFqSAe+JhkN9SLdCYk4Tf993kvzYp2XFkL y1M96ER/1OpUc38s4pvvK/EobKZbcrSnTzmX+nMXd+o/K+ZEfYvnBc/Lpm6sIFwLcxwN +G7RMgdVWqlzXinzVHXxgTkzXSB20brRbtE5k9zLwfq9Im2ug9FZFf1Q+zZethXCSjEA wd7SVV7LzF8RkIS9VQ1XagOfwKRsezbFmshyvpFvB+AIqx4psXGztUmyeAYVRbvsyHxC 5mSDLMCVROoF7tJL05aj+3OdK9i5iNbBrCYpWeazD76mK1FzXgPTp5DWXG/tEDe0MKMS 01fg== X-Gm-Message-State: AOJu0YxG08mpfMmv5sK1Tsa5O/jtOzki1FjvC83Md1+x8c3njSfaKL+v tiMVfeIAksQFajPcmOG1zuvkZ5NvKjF03bsVv0s= X-Google-Smtp-Source: AGHT+IFFbTS1g0COUZM4JjHR24C+F2R8+JXM6opkCFfOv1RyI8RGz1PKatpP4HaILWOjKnm9yfDmfCEOI/5owFtcfn0= X-Received: by 2002:a05:6102:4746:b0:45a:adb1:e731 with SMTP id ej6-20020a056102474600b0045aadb1e731mr5273365vsb.18.1698279482289; Wed, 25 Oct 2023 17:18:02 -0700 (PDT) MIME-Version: 1.0 References: <20230906130103.3121-1-adam.mohidin.kandur@gmail.com> <87lebx4oj6.fsf@cbaines.net> In-Reply-To: <87lebx4oj6.fsf@cbaines.net> From: Adam Date: Thu, 26 Oct 2023 03:17:51 +0300 Message-ID: Subject: Re: [bug#65784] [PATCH] gnu: Add woeusb. To: Christopher Baines Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65784 Cc: 65784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) yeah, my bad will send a new one On Fri, 20 Oct 2023 at 12:43, Christopher Baines wrote: > > > Adam Kandur writes: > > > * gnu/packages/admin.scm (woeusb): New variable. > > --- > > gnu/packages/admin.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 65 insertions(+) > > > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > > index 604cd70..6b971e8 100644 > > --- a/gnu/packages/admin.scm > > +++ b/gnu/packages/admin.scm > > @@ -2388,6 +2388,71 @@ (define-public wakelan > > network, which causes enabled computers to power on.") > > (license license:gpl2+))) > > > > +(define-public woeusb > > + (let ((revision "0") > > + ;; named branch is outdated > > + (commit "34b400d99d3c4089f487e1d4f7d71970b2d4429e")) > > + (package > > + (name "woeusb") > > + (version (git-version "0.0.0" revision commit)) > > + (source > > + (origin > > + (method git-fetch) > > + (uri (git-reference > > + (url "https://github.com/WoeUSB/WoeUSB.git") > > + (commit commit))) > > + (file-name (git-file-name name version)) > > + (sha256 > > + (base32 "05ghja2rpn4kqak9yll398na54dscsfnm3z5f2pi54lan98wzimh")= ))) > > + (build-system trivial-build-system) > > + (inputs > > + (list ntfs-3g grub ncurses parted coreutils util-linux wimlib)) > > + (arguments > > + `(#:modules ((guix build utils)) > > + #:builder > > + (begin > > + (use-modules (guix build utils)) > > + ;; copy source > > + (copy-recursively (assoc-ref %build-inputs "source") ".") > > + ;; patch source > > + (substitute* "sbin/woeusb" > > + (("tput sgr0") (string-append (assoc-ref %build-inputs "n= curses") > > + "/bin/tput" > > + " sgr0")) > > + (("parted --script") > > + (string-append (assoc-ref %build-inputs "parted") > > + "/sbin/parted --script")) > > + (("parted \\\\") > > + (string-append (assoc-ref %build-inputs "parted") > > + "/sbin/parted \\")) > > + (("grub-install") (string-append (assoc-ref %build-inputs= "grub") > > + "/sbin/grub-install")) > > + (("command -v mkntfs") (string-append > > + "command -v " > > + (assoc-ref %build-inputs "ntfs-3g= ") > > + "/sbin/mkntfs")) > > + (("command_mkntfs_ref=3Dmkntfs") (string-append > > + "command_mkntfs_ref=3D" > > + (assoc-ref %build-inputs = "ntfs-3g") > > + "/sbin/mkntfs")) > > + (("readlink \\\\") (string-append > > + (assoc-ref %build-inputs "coreutils") > > + "/bin/readlink \\")) > > + (("wimlib-imagex") (string-append > > + (assoc-ref %build-inputs "wimlib") > > + "/bin/wimlib-imagex")) > > + ;; could not find partprobe package > > + ;; as i see this command never used in the program > > + (("partprobe \\\\") "\\")) > > + ;; install phase > > + (install-file "sbin/woeusb" (string-append %output "/bin")) > > + #t))) > > + (home-page "https://github.com/WoeUSB/WoeUSB") > > + (synopsis "A Microsoft Windows=C2=AE USB installation media prep= arer for GNU+Linux") > > + (description "Very usefull package for anyone who wants to make = a bootable Windows=C2=AE USB stick > > +using free and open source operating system.") > > + (license license:gpl3+)))) > > + > > (define-public dmidecode > > (package > > (name "dmidecode") > > Hi Adam, > > Does this build for you locally? According to QA, grub is undefined, so > maybe there's an import missing. > > Thanks, > > Chris From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 25 20:20:37 2023 Received: (at 65784) by debbugs.gnu.org; 26 Oct 2023 00:20:37 +0000 Received: from localhost ([127.0.0.1]:60266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvo73-0003Mj-0E for submit@debbugs.gnu.org; Wed, 25 Oct 2023 20:20:37 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:59738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvo6y-0003MN-PY for 65784@debbugs.gnu.org; Wed, 25 Oct 2023 20:20:35 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c5028e5b88so4337441fa.3 for <65784@debbugs.gnu.org>; Wed, 25 Oct 2023 17:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698279595; x=1698884395; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=n5xuUNLcf8zh0w/MqRcSEF0ChnScHBVdC8q5Qxa4TGc=; b=aHu7ZKC9lwIIoTxmYZhJpb8bHVwsnLVSWqlfchzgCvabdSX5g06S/Na3Fou1kRbiur Qk+7AbyfHIz6vAjYtX/0U81f7mPSuAd0iWA/0ybFS7fb7HlzwcrTMyCaMc3YMAykgQXh T8MZrNRsabGINDOU0HRU/QN7J9g1+eCC5Lgt01ivHKKm1yap4w/bOvCUT6LM+nqgBmM4 CDCMYOKDzm7503py+VmCayMEhI2/kgKoredy86n+bJent7bRIwPYLHxm+OzNbYDnAWNk P64ZTcMwDk5/kDw+eCfQH34B7eJLWDNMjkJHjxp/jOsKefP1I8Ok1wQOwXBVMQeunS0L ajgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698279595; x=1698884395; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n5xuUNLcf8zh0w/MqRcSEF0ChnScHBVdC8q5Qxa4TGc=; b=cfmlrivL3hbPiHQP2+pSRUbHZZEvKfzO8EjdkH9GVSWXeuOVx36PvpsWmQXPGl+Syi s6JFCyuIuDXm6TFL2OdlviX5eufWNKm5FCSOrooS0KK8COOnvVzFd0gLwdlzfX9F8SB4 tEOaYb94PjWnX/nx9omrS3kk+1dOcN3ynmFIgh6Xp6GDvf4HaNKpGRt6LH3FHNGxYX0M FiPdJ+e/jmQwB1atjNN1pTrPbG/vkueNThKivb2i/sgW1uhZOQ40dHXgB+cOjtIs/fTb bqDZA9/hgZOv3tNHykpaLwMCAsewdWaSBl+6CcPPdfboi+uRj55Yozt+9LEYPmJYNhMl 5oog== X-Gm-Message-State: AOJu0YxGv0Z8cFt0jZZ6hvmrDZ0mBAqJr6Oy809J3nBWSw0oD/KZTbt9 QbPXIfXhyvjyiuRM/qJs2IhXciUiZJMUCw== X-Google-Smtp-Source: AGHT+IGs7s1VSgNV6ReuYKNMpAgGNlq1ZC5WByn6xXI5cegQO/Gm/OsM8CA2+0A/we7VrpG7sLiGyg== X-Received: by 2002:a2e:8656:0:b0:2c5:1c9d:7f81 with SMTP id i22-20020a2e8656000000b002c51c9d7f81mr12671480ljj.32.1698279595293; Wed, 25 Oct 2023 17:19:55 -0700 (PDT) Received: from localhost.localdomain ([2a00:1370:8188:4fd4:4b9b:14fd:7390:f045]) by smtp.googlemail.com with ESMTPSA id e15-20020a2e984f000000b002c51077cba1sm2537511ljj.105.2023.10.25.17.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:19:55 -0700 (PDT) From: Adam Kandur To: 65784@debbugs.gnu.org Subject: [PATCH] gnu: Add woeusb. Date: Thu, 26 Oct 2023 03:19:37 +0300 Message-ID: <20231026001939.13847-1-adam.mohidin.kandur@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65784 Cc: Adam Kandur X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/admin.scm (woeusb): New variable. --- gnu/packages/admin.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 8f72b0e..2c35562 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -102,10 +102,12 @@ (define-module (gnu packages admin) #:use-module (gnu packages algebra) #:use-module (gnu packages attr) #:use-module (gnu packages autotools) + #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) + #:use-module (gnu packages bootloaders) #:use-module (gnu packages c) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -116,6 +118,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages curl) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages datastructures) + #:use-module (gnu packages disk) #:use-module (gnu packages dns) #:use-module (gnu packages elf) #:use-module (gnu packages file) @@ -2437,6 +2440,71 @@ (define-public wakelan network, which causes enabled computers to power on.") (license license:gpl2+))) +(define-public woeusb + (let ((revision "0") + ;; named branch is outdated + (commit "34b400d99d3c4089f487e1d4f7d71970b2d4429e")) + (package + (name "woeusb") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WoeUSB/WoeUSB.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05ghja2rpn4kqak9yll398na54dscsfnm3z5f2pi54lan98wzimh")))) + (build-system trivial-build-system) + (inputs + (list ntfs-3g grub ncurses parted coreutils util-linux wimlib)) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + ;; copy source + (copy-recursively (assoc-ref %build-inputs "source") ".") + ;; patch source + (substitute* "sbin/woeusb" + (("tput sgr0") (string-append (assoc-ref %build-inputs "ncurses") + "/bin/tput" + " sgr0")) + (("parted --script") + (string-append (assoc-ref %build-inputs "parted") + "/sbin/parted --script")) + (("parted \\\\") + (string-append (assoc-ref %build-inputs "parted") + "/sbin/parted \\")) + (("grub-install") (string-append (assoc-ref %build-inputs "grub") + "/sbin/grub-install")) + (("command -v mkntfs") (string-append + "command -v " + (assoc-ref %build-inputs "ntfs-3g") + "/sbin/mkntfs")) + (("command_mkntfs_ref=mkntfs") (string-append + "command_mkntfs_ref=" + (assoc-ref %build-inputs "ntfs-3g") + "/sbin/mkntfs")) + (("readlink \\\\") (string-append + (assoc-ref %build-inputs "coreutils") + "/bin/readlink \\")) + (("wimlib-imagex") (string-append + (assoc-ref %build-inputs "wimlib") + "/bin/wimlib-imagex")) + ;; could not find partprobe package + ;; as i see this command never used in the program + (("partprobe \\\\") "\\")) + ;; install phase + (install-file "sbin/woeusb" (string-append %output "/bin")) + #t))) + (home-page "https://github.com/WoeUSB/WoeUSB") + (synopsis "A Microsoft Windows® USB installation media preparer for GNU+Linux") + (description "Very usefull package for anyone who wants to make a bootable Windows® USB stick +using free and open source operating system.") + (license license:gpl3+)))) + (define-public dmidecode (package (name "dmidecode") -- 2.41.0