From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WDvPKRZMMmXyyAAA9RJhRA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 11:44:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WDvPKRZMMmXyyAAA9RJhRA (envelope-from ) for ; Fri, 20 Oct 2023 11:44:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4782865787 for ; Fri, 20 Oct 2023 11:44:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697795094; a=rsa-sha256; cv=none; b=TjdGA8HgibYVwM3OtxKrcS+tWwM7u/2KS1c5vT3tqX5n/eB6PKX3Zq4xbGOhcvF5VQg33Q oxk5dlRaakHRcMX7kbVSlsvYA2YYSIAMZtMwEUEWG+CSmRsWEM/DUgdo5yhROvdlkxQxWn IUYvgXWRBghUql1k3ZK9prEeQWWMwldyx8YAEbw2rnFOfb2Kt4bcl6+2wJSOD1q4wVlhKR p9mGB9tf8UNwcie8jS5EmgkdNyetSrKjswJnD5ydQoy1es7xtkYGxV69XRWIsww9v6aJq2 7RHsTBqyA446ILaTubwYEC0qqjz6ytDjFmcdfYns1cLIgIrZVyDthUTlQoStdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697795094; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=J/vXCP32+XWOiM8FulFyVnhT6o15mj+z5xKPGDhLS8I=; b=OoTmbRMXSPoBpDNumiIctJQxY+w0J+ylQ5T3Qz1GhuKU7rDJyZ5ypMNrkZWnpupDEvmxSt mc23xRYCiAopHLrBfXm0k1W3RsyVuYg8JiTCdrgWFDtVFWIpykDzogU065pXVrjp5jZO5B 5uOMq71CV2QnhzSAkpwx6rxwvRKRYHGiZABgeFxdnCbnu9iNYQXLcNIFVrhHSkypXL7plE KwHAnexcb4pKxBVD7vyy5f2OBLf9RRMRzlWKytBKiWsd49N1fQzWE01XvX8VQuBT95EnvU IEJ2vsPUxrKfipDcISuOr1DAXSDWduIsdr8EjAHJmK+iSjr+55KyvTVpTDS/lA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtm3Y-0002IW-Mz; Fri, 20 Oct 2023 05:44:36 -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 1qtm3W-0002Hx-TB for guix-patches@gnu.org; Fri, 20 Oct 2023 05:44:34 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtm3W-0007ab-L9 for guix-patches@gnu.org; Fri, 20 Oct 2023 05:44:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtm3x-0000fu-Ne for guix-patches@gnu.org; Fri, 20 Oct 2023 05:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65784] [PATCH] gnu: Add woeusb. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Oct 2023 09:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65784 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Adam Kandur Cc: 65784@debbugs.gnu.org X-Debbugs-Original-Cc: 65784@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16977950602523 (code B ref -1); Fri, 20 Oct 2023 09:45:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -8.26 X-Spam-Score: -8.26 X-Migadu-Queue-Id: 4782865787 X-TUID: jnBWVF47HIae --=-=-= 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----- --=-=-=--