From 33b855390864c109120a3f525c31a88f5f67c8cc Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sat, 25 Nov 2023 01:34:15 +0100 Subject: [PATCH] libbgcode: init at 2023-11-16 --- pkgs/by-name/li/libbgcode/package.nix | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/li/libbgcode/package.nix diff --git a/pkgs/by-name/li/libbgcode/package.nix b/pkgs/by-name/li/libbgcode/package.nix new file mode 100644 index 000000000000..e4dd6099bc9d --- /dev/null +++ b/pkgs/by-name/li/libbgcode/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, heatshrink +, zlib +, boost +, catch2 +}: +stdenv.mkDerivation { + pname = "libbgcode"; + version = "2023-11-16"; + + src = fetchFromGitHub { + owner = "prusa3d"; + repo = "libbgcode"; + rev = "bc390aab4427589a6402b4c7f65cf4d0a8f987ec"; + hash = "sha256-TZShYeDAh+fNdmTr1Xqctji9f0vEGpNZv1ba/IY5EoY="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + heatshrink + zlib + boost + catch2 + ]; + + meta = with lib; { + homepage = "https://github.com/prusa3d/libbgcode"; + description = "Prusa Block & Binary G-code reader / writer / converter"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ lach ]; + }; +}