From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mCBLECLSKmRWEwAASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 15:18:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id vYpMDyLSKmSATAAAG6o9tA (envelope-from ) for ; Mon, 03 Apr 2023 15:18:26 +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 DE40C25AE8 for ; Mon, 3 Apr 2023 15:18:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjK4V-0003Zs-U8; Mon, 03 Apr 2023 09:18:07 -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 1pjK4S-0003Ze-EL for guix-patches@gnu.org; Mon, 03 Apr 2023 09:18:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjK4Q-00089q-Sp for guix-patches@gnu.org; Mon, 03 Apr 2023 09:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjK4Q-0000P3-6I for guix-patches@gnu.org; Mon, 03 Apr 2023 09:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50578] [PATCH] gnu: Add minipro References: <20210914105601.12562-1-thomas@thomaslabs.org> In-Reply-To: <20210914105601.12562-1-thomas@thomaslabs.org> Resent-From: Thomas Albers Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Apr 2023 13:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50578@debbugs.gnu.org Cc: Thomas Albers Received: via spool by 50578-submit@debbugs.gnu.org id=B50578.16805278801541 (code B ref 50578); Mon, 03 Apr 2023 13:18:02 +0000 Received: (at 50578) by debbugs.gnu.org; 3 Apr 2023 13:18:00 +0000 Received: from localhost ([127.0.0.1]:43715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjK4O-0000On-2u for submit@debbugs.gnu.org; Mon, 03 Apr 2023 09:18:00 -0400 Received: from gamma.thomaslabs.org ([38.242.253.186]:42526 helo=localhost) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjK4L-0000Oc-Kq for 50578@debbugs.gnu.org; Mon, 03 Apr 2023 09:17:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=default; t=1680527868; bh=gjFiMffxSIqXiDxF4vmUFrz4vvWHGaFE0PRwizlPz+c=; h=date:subject:cc:to: from; d=thomaslabs.org; b=XKjC7QkIB53yoboJw2RWElSasbLJk+WgSVPIiQPIkD4/ MARn0VnUFoSFr+StL9vnW3HmslVWCZsmf01rd95HZ3azUHAS5KGw/Pnl10qTvqUTe1qrre U/YAdxM7SqSe/PagztfF3urtpKsOEGW5Voe7XdgG1Ot8oz/YkCNZY6WVvJrv++AVKbD3Qy dmh2f3a7Gf8DaRk/gEBqqgnnjEo+uxu+tatlZvOJ+1agTFoIgF/hTrmuMdxtSMQ3q9bXOw xLjVh9HH3+L9KIIScDiAsIuhhi8JVs+5QnvX2PZhyIHfkZ9xRMQPyJRNAvL5RKkikumBwB NVfSo1u8Hcx9hTsPvg== Received: from alpha.lan (dslb-088-068-101-101.088.068.pools.vodafone-ip.de [88.68.101.101]) by localhost (OpenSMTPD) with ESMTPSA id 9125ad05 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 3 Apr 2023 13:17:48 +0000 (UTC) Date: Mon, 3 Apr 2023 15:17:29 +0200 Message-Id: <20230403131729.3437-1-thomas@thomaslabs.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Reply-to: Thomas Albers X-ACL-Warn: , Thomas Albers via Guix-patches From: Thomas Albers via Guix-patches via 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680527905; a=rsa-sha256; cv=none; b=SJrUce1f3QXz5FBrHiRbpIGb2D16InsPimeMekMlQ8yQodP1PK16ZRCBM/UBxH+f47J9l5 +aGL6n8RY9r8kdP45NdK3U8E+LYipJYnpxVS2+ZgQmvIjqW3HQe12AEQl7znIlM31Jt1wZ bMy9RZNhyA6j1LM+nk/vYjNwajjDZ2sVG6Whaz2DOQ3IqGR6owrZw1wgAUtsn5Zm31bdLp tt7+vjuXhQJj/ixL0RxzFqv16bpS4+8qxp3L/0jcZJfiDSTpC/m5D14rGfaKrA6ogZthGO 2mkmKrqn4PrwCyCJ3zmjFno28CfMcJt5QlIrX4BvRl3qCOnYz1e2r+1Rmj7s0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thomaslabs.org header.s=default header.b=XKjC7QkI; dmarc=pass (policy=none) header.from=gnu.org; 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=1680527905; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=KoVN+oZmC366sHOLbPS3mLXLIEqiLNck10ULsMWT41A=; b=peXfT0U2KQIHFFiwuGoMHV+09L5LDGwZlXN9ZCwztz8AwS8VRG+IgrbNof+Vg71hSywc9h Qful850Iou5S3BGM4KSZry2JSRC5smMvt29yckwV2HH6eupLTVQwXX6nxFeQ+BgORoalYH ahGNKEcpTo+VDymNH6m561z+Y4enKn+SPkE/4PCf3LkKelf5Ya7EgoG8cL5s1ua57ompGg rB70oUsWLG5AgvyJr9/pV2vyiRI+4kE2wNimPeRk5Qg5B8KLjhXfcB7xmWjLCf4g9TDn2n +kg1UW2CNSqqh9CrpbS50IUKrt7ff6mcwabSF2iZHtbH2cRdlmViHDadHeuGOA== X-Migadu-Spam-Score: -3.72 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=thomaslabs.org header.s=default header.b=XKjC7QkI; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Spam-Score: -3.72 X-Migadu-Queue-Id: DE40C25AE8 X-TUID: JkywCj15oVLY * gnu/packages/electronics.scm (minipro): New variable. --- gnu/packages/electronics.scm | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 98b71e041e..e1ceabd583 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2021 Efraim Flashner ;;; Copyright © 2021 Leo Famulari ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2023 Thomas Albers Raviola ;;; ;;; This file is part of GNU Guix. ;;; @@ -431,3 +432,61 @@ (define-public xoscope support for ESD sources.") (home-page "https://xoscope.sourceforge.net/") (license license:gpl2+))) + +(define-public minipro + ;; Information needed to fix Makefile + (let* ((commit "c181c2cf1619d00a520627d475e3fadb1eea5dac") + (commit-short (substring commit 0 8)) + (date "2022-09-10 21:44:06 -0700")) + (package + (name "minipro") + (version "0.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/DavidGriffith/minipro.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03xgmvvsxmqrz7blg7cqk0pb9ynhlq6v6jfl532zmjdzp5p3h10d")))) + (native-inputs (list pkg-config which)) + (inputs (list libusb)) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-before 'build 'fix-makefile + (lambda _ + ;; Fix some git related variables that minipro expects + (substitute* "Makefile" + (("GIT_BRANCH = .*") + (string-append "GIT_BRANCH = \"master\"\n")) + (("GIT_HASH = .*") + (string-append "GIT_HASH = \"" #$commit "\"\n")) + (("GIT_HASH_SHORT = .*") + (string-append "GIT_HASH_SHORT = \"" #$commit-short "\"\n")) + (("GIT_DATE = .*") + (string-append "GIT_DATE = \"" #$date "\"\n")))))) + #:make-flags + #~(list (string-append "VERSION=" #$version) + (string-append "PREFIX=" #$output) + (string-append "UDEV_DIR=" #$output "/lib/udev") + (string-append "COMPLETIONS_DIR=" #$output + "/share/bash-completion/completions")))) + (synopsis "Controls the TL866xx series of chip programmers") + (description + "minipro is designed to program or read the contents of +chips supported by the TL866xx series of programmers. This includes many +microcontrollers, ROMs, EEPROMs and PLDs. + +To use this program without root privileges you must install the necessary udev +rules. This can be done by extending @code{udev-service-type} in your +@code{operating-system} configuration with this package. E.g.: +@code{(udev-rules-service 'minipro minipro #:groups '(\"plugdev\")}. +Additionally your user must be member of the @code{plugdev} group.") + (home-page "https://gitlab.com/DavidGriffith/minipro") + (license license:gpl3+)))) -- 2.39.2