From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sNpPEdJhkmbMJAAA62LTzQ:P1 (envelope-from ) for ; Sat, 13 Jul 2024 11:15:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sNpPEdJhkmbMJAAA62LTzQ (envelope-from ) for ; Sat, 13 Jul 2024 13:15:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KgIu1XiC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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=1720869330; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=QlnJi+Hrl2UBbY6LbAo0dlF0srhaopMQxTpxc3U+ZfQ=; b=MA5tL3U3W7/PBmeL+/MmDIydMWzhxNLOCGEN+BJPHtxf4x77WjGYUfSxWgIT2NoPHrL/k2 qP407Jan4vxPzfIT1I3hCQBdbAM4jdYbKV3QOvXwvwwXKym4eXdpUxT2hNI80mmwVqckQg OpzlMaPKTQklsdS6+cooV7kvEempWWbJVmCHURpAkSkLC7zvbySoQ+iWP6rI8PenkvRK0J 1a5+ZZsrtqsjnZZfLMONmN6vR7H8lxB3wyu66TNOJTX/koK8C6hanNcoKkDPswU4N9cGAp e7ms4BF+6PxZ4K2rWzpLqAl1e0QGi8GvAdOrgAH5vLrPqGlnzG6oGSJqVa7ztg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720869330; a=rsa-sha256; cv=none; b=JMrbtxgdA1pyGxTXOl+mvNnI798DbLfPTKTM5CU2dzIp4cy/oyFtWkAsiw4/B1bPBli4lY 1CbQN7eQK97uGjJEJyMV4tXfhiASPcb/s+llmTRrj5lQyuaTozIypUj0wHvz8HhHiUQuDN B5B+6tfHzzZP0PCXaaT/iXqdakYdbCozfjdC4nmK/0m9PDUaQMHPAo5wi538RBfUoL7WjK BlLXUXOCYEc/twx5vCmAHzXp7Z7kgx4/7nrR2CDmxUdleZZRrEtzIdNbUvFWtWj5zP6APM uNrFJ+4rIqq5ZiqIcxFYsLmOHxdlhFoDkoY390xTA7XT+RK1kQSF4ncZMbbBbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KgIu1XiC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" 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 A17EA13709 for ; Sat, 13 Jul 2024 13:15:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSaik-0007vT-2b; Sat, 13 Jul 2024 07:15: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 1sSaif-0007ti-7G for guix-patches@gnu.org; Sat, 13 Jul 2024 07:15:15 -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 1sSaiV-0000Hw-Fj for guix-patches@gnu.org; Sat, 13 Jul 2024 07:15:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSaiW-0002yL-7W for guix-patches@gnu.org; Sat, 13 Jul 2024 07:15:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70880] [PATCH v3 6/8] gnu: Add prusa-libbgcode. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Jul 2024 11:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70880 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 70880@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 70880-submit@debbugs.gnu.org id=B70880.172086928211320 (code B ref 70880); Sat, 13 Jul 2024 11:15:04 +0000 Received: (at 70880) by debbugs.gnu.org; 13 Jul 2024 11:14:42 +0000 Received: from localhost ([127.0.0.1]:55217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSaiA-0002wV-8j for submit@debbugs.gnu.org; Sat, 13 Jul 2024 07:14:42 -0400 Received: from mail-lj1-f174.google.com ([209.85.208.174]:49412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSai5-0002v6-D6 for 70880@debbugs.gnu.org; Sat, 13 Jul 2024 07:14:37 -0400 Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2eea7e2b0e6so35090411fa.3 for <70880@debbugs.gnu.org>; Sat, 13 Jul 2024 04:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720869210; x=1721474010; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QlnJi+Hrl2UBbY6LbAo0dlF0srhaopMQxTpxc3U+ZfQ=; b=KgIu1XiC0lgwByw4pg3So6/8aAnYmGGDrCHpBumACVhMz2bp/fIzLClSaR04O87GV4 ILxUiafwila8AvDh4jbaSHJANNQFuCK4B0fXu9s7kwDm/f0N28KNjc/EarHXuwn8Vbqc OQERvkW2Hwp/JnmxhHmKGoikzClIGlvNtL/DQRuSWWECIBhg1qIOIR7Hlo1fS8iJl65X dJX5bv8lEEnNeXkcAbRX6PKS80Dvwh5oV4H+dyYzxLuRKyf3z6y1nTcvUwzEysWJDuuF r4fz41PD2e+eFynDDOMABW6kTAbRKpNeI/T2wkmonVaq+m2MPAXm1/3INPzrDS83fsIu ZNuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720869210; x=1721474010; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QlnJi+Hrl2UBbY6LbAo0dlF0srhaopMQxTpxc3U+ZfQ=; b=n+DOc06YpleTMgZ37IIhjUSsmn/c0U7oV/5RFYD9Y3jRIaUHanbx5HI9wTUgm0Q795 4Yxcyob7j6z1WAlSTqHlSt5/eLlOgTyj0Ih+wne2WCNdo9NetWbEqmDh9FZeMMOEWyHO XC4ITJpXFLR+YcCv36Mx9+m7wm4cUdivfZ2vkoamjsv5GLP8SsHFinqAGnyg7CtG0ZAM X0JR+/KUKU/xtxZORmhjY1JDNRI4CIE3UBrUCSpxbO70zXFfN6E/73cc3YoPlNIi/9i1 VR3tuu1LpRxj6i2VwMl1aOv6cwAW1Y+PXq0JQy2Rj5EwwDkrKxHdj3+ZXHoHAY/n5oi1 jsvw== X-Gm-Message-State: AOJu0YyuuZNrTJ6Ao2HH8hBgs/zn1iOA9yUJ+Ovp8JmM/aCD8QYrre7v BN6qn6AZ/8l8ZVOYQEkzWVZ/uQuayrK3XMMUCH4beT/KzCz54JPET5xmDQ== X-Google-Smtp-Source: AGHT+IGwC7vQOlS7tyHsrI+DDW/XxqTV/jeV2ab9GS5NqtsJ3HOCKKdbkrXK3DGWOVJ19Mycd1cfzQ== X-Received: by 2002:a2e:97cb:0:b0:2ec:1042:fb02 with SMTP id 38308e7fff4ca-2eeb30b4debmr100701921fa.8.1720869209938; Sat, 13 Jul 2024 04:13:29 -0700 (PDT) Received: from elephant.. ([95.79.4.1]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2eee179e797sm1781541fa.21.2024.07.13.04.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jul 2024 04:13:29 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 13 Jul 2024 14:13:15 +0300 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A17EA13709 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.80 X-Spam-Score: -4.80 X-TUID: S/LaJDvDdlo4 * gnu/packages/engineering.scm (prusa-libbgcode): New variable. Change-Id: I1f18c399d0fe36987c613ce4c0c3845c803beb45 --- gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 5dfb1e1be3..30eb5a7773 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -3775,6 +3775,52 @@ (define-public libigl visualization, matrix manipulation.") (license (list license:gpl3 license:mpl2.0)))) +(define-public prusa-libbgcode + ;; Use the latest commit since there are no proper releases nor tags. + (let ((commit "8ae75bd0eea622f0e34cae311b3bd065b55eae9b") + (revision "0")) + (package + (name "prusa-libbgcode") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/prusa3d/libbgcode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fjx2ijz9zqpqs486lcrrrhqvmfzrpb8j6v57l0jiynavwv3kznw")))) + (native-inputs (list catch2)) + (propagated-inputs (list zlib boost heatshrink)) + (build-system cmake-build-system) + (home-page "https://github.com/prusa3d/libbgcode") + (synopsis "Prusa Block and Binary G-code reader/writer/converter") + (description + "Binary G-code is a new standard for encoding and compressing ASCII G-code +files. G-code files are easy to read and interpret, but their downside is that the +data is not saved efficiently, and the file size is often very large. Compression of +the file is problematic because the printers usually run on limited hardware and they +may not have enough memory and/or CPU power to decompress it. + +Block and Binary G-Code is a new G-code file format featuring the following +improvements over the legacy G-code: +@itemize +@item Block structure with distinct blocks for metadata vs. G-code. +@item Faster navigation. +@item Coding and compression for smaller file size. +@item Checksum for data validity. +@item Extensibility through new (custom) blocks. For example, a file signature block +may be welcome by corporate customers. +@end itemize + +The binary G-code format is flexible and the encoding and compression of individual +blocks is variable. @code{libbgcode} library contains the routines to convert ASCII +G-codes to binary and vice versa.") + ;; See + ;; + (license license:agpl3+)))) + (define-public prusa-slicer (package (name "prusa-slicer") -- 2.45.2