From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8E4PFuLigma/KQAAqHPOHw:P1 (envelope-from ) for ; Mon, 01 Jul 2024 17:09:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8E4PFuLigma/KQAAqHPOHw (envelope-from ) for ; Mon, 01 Jul 2024 19:09:54 +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=Hjw9FxzA; 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=1719853794; 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=mSNHZjNwhp32sxiWq1HK3+sBUtao9DktGjDSbybn5g0=; b=X8kZJYTb72/3wd6IaJhhdl7D7lSoytXZ9McKsmAII75J2WaPG5rmTUR4z4H8RkQMYIcdyz HMDzppim16DLVe+eUAareifDs2UkakXAFT27GEFjh7qMxk+yNJ4MmQB1ntgUtjuG8tpRl3 HjdnQIKy0gkyedLaDVlQeKlKTrfJoO+PVgNi7Cd/RkjUhpuUrN9PAb+utHX1nljF+eACeI acDsYtHBNA6XmZVvUMzJ3VR+vH1YKVQ9tyn/oqa+NUST5Es+EL/eiSt5mMSSlFU/UxQzKi mOcddwMGEYhjCQyGxhe1RQJslQWBO6OlAKUepDvxl9TAc7th8Bko9sr9/d+6kA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719853794; a=rsa-sha256; cv=none; b=gT/Rghf5hGcUSs390OMK6XFGbayZuyiaDBnNQiMtizCXt3imPzEmRu0uMir1Ehk07YtocH cGipnu5PNO+y/bh7Qba91GJefA7JqjZotMY9r+6AeDr0brDTBGILAEnuGZf553eDSIyNRl ElUpyZhbrcLenM1MSmWtJiUQ8S59UI5F9+LLSwxSC0fNkjLZlPhgFSc1VkeHP2VfIiDUGE OazVWAnYrJRiW3ItR+fTPCrg5tN5vOo1yfLtoNCcecuViteeZ2WqjiGsSnN+3wtp9smCPX ikBzarEtXfHxLU39sWNlC50kxML6hmKIIbLr3cmJ1aIPjoT4t+uPDx4YSF+i3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Hjw9FxzA; 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 189578BA9 for ; Mon, 01 Jul 2024 19:09:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOKWW-0002w2-WE; Mon, 01 Jul 2024 13:09:05 -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 1sOKWW-0002v3-7o for guix-patches@gnu.org; Mon, 01 Jul 2024 13:09:04 -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 1sOKWV-0007fL-W3 for guix-patches@gnu.org; Mon, 01 Jul 2024 13:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOKWW-0004z8-HO for guix-patches@gnu.org; Mon, 01 Jul 2024 13:09:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70880] [PATCH v2 6/8] gnu: Add prusa-libbgcode. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Jul 2024 17:09: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.171985372619073 (code B ref 70880); Mon, 01 Jul 2024 17:09:04 +0000 Received: (at 70880) by debbugs.gnu.org; 1 Jul 2024 17:08:46 +0000 Received: from localhost ([127.0.0.1]:34360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOKWD-0004xO-W0 for submit@debbugs.gnu.org; Mon, 01 Jul 2024 13:08:46 -0400 Received: from mail-lf1-f44.google.com ([209.85.167.44]:58448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOKWA-0004wE-H8 for 70880@debbugs.gnu.org; Mon, 01 Jul 2024 13:08:42 -0400 Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-52e743307a2so3716136e87.0 for <70880@debbugs.gnu.org>; Mon, 01 Jul 2024 10:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719853655; x=1720458455; 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=mSNHZjNwhp32sxiWq1HK3+sBUtao9DktGjDSbybn5g0=; b=Hjw9FxzAW1PSDNK3Ma4sx8TI7aVsAhZ6ZosMWEv0OaY0OCrJWMEVt7V5iTHhxuojGB YsSJn1NfiiTkwu8Bs1J2Ob3hlJAMmpOALI9OpB3qtPj4v303rNrw/hzhY1nTTSl9SaNe jDqTlqW5iCVtD7xQ33i1GdaTn4MqKjiNOXLGddACwD5kPMIdZC+mABwZEMovVWEEHYzY 1ttKyxsH/iEZHvt917Kvqgz3POwBZqLO73QpqnPsVO2x6hFGszN3IQmHzxBiQwiD9tnF +3djM3nBKJz00/uRSJLB6aaGYRZdBB32gmMInvS+kpsueCYAyvrWRZoeEejpkNweoiuU EzbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719853655; x=1720458455; 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=mSNHZjNwhp32sxiWq1HK3+sBUtao9DktGjDSbybn5g0=; b=fJUNvMpliRj40GTho5YikKuUFv4XntILo26PGB+GSbZOIGFJRNbvDdJOTj2hDlADF5 ITTnGF0ov1vwva6CgzOU7DOZP9M2yj6IMRcX7BuZf1x3BG+iALgwsVF+EeEYFbjC7a9/ qpVltedj84aWSLWFRUkcKEq+8XSCU04SQq2KUFjAWE+FCbh/Q9a/s/2O6bM8LvPQQTWI ObG/NTZ+iBq3syjmrKzS6mozbYtsJnGsUKyWE2zg73TtEfpYANF9OdT/zX/9tEU0+MxV /s6glVdAytMV7NxifwFcoI3l4iwEF+jKka+BOZrr9ekHTUm3cH4YqbqP0ZgXPN6c8Y83 zmKg== X-Gm-Message-State: AOJu0YyDogTDWtLKiQO5QPf5ng9k3TDOYilciDBu16MAtg8OpLqlKYtN z8TnlcHDoP7GwJ8rlWOncyozdBzUnoTMmpUtsvti354+wgjeEPNmEDrE4Q== X-Google-Smtp-Source: AGHT+IEWmsmoOE5ZmGGOp1OA0ufXB4LUXUT/asaZhb3WmoLJHNbW4Nx1YdSIyPYMTXeYrEGpV4cMaQ== X-Received: by 2002:a05:6512:308f:b0:52e:76bb:c906 with SMTP id 2adb3069b0e04-52e8274a36bmr5302711e87.61.1719853655297; Mon, 01 Jul 2024 10:07:35 -0700 (PDT) Received: from elephant.. ([95.79.4.1]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52e7ab2793fsm1497282e87.123.2024.07.01.10.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 10:07:34 -0700 (PDT) From: "Artyom V. Poptsov" Date: Mon, 1 Jul 2024 20:07:08 +0300 Message-ID: <2cdedc4189efac291f16e099b91605a8f8f4aca9.1719853592.git.poptsov.artyom@gmail.com> 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-Spam-Score: -1.78 X-Spam-Score: -1.78 X-Migadu-Queue-Id: 189578BA9 X-Migadu-Scanner: mx11.migadu.com X-TUID: p6+T5Em95SgD * 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 7f29e2c365..de4b4a5825 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -3753,6 +3753,52 @@ (define-public libigl visualization, matrix manipulation.") (license (list license:gpl3 license:mpl2.0)))) +(define-public prusa-libbgcode + (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. The library is written in C++ and the repository +includes bindings for Python.") + ;; See + ;; + (license license:agpl3+)))) + (define-public prusa-slicer (package (name "prusa-slicer") -- 2.45.2