From patchwork Mon Jul 1 17:07:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 65817 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BABEB27BBE2; Mon, 1 Jul 2024 18:09:54 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E7FE527BBE2 for ; Mon, 1 Jul 2024 18:09:53 +0100 (BST) 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 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")