diff options
author | Yaroslav Bolyukin <iam@lach.pw> | 2023-11-25 01:34:15 +0100 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-30 13:13:37 +0000 |
commit | d965d84502f910d8f8f94b15ebf373621d4a57bc (patch) | |
tree | 7106980387530ba3e49601a9836267e7ec3ee232 | |
parent | 1970789c11eaf2e6c31769db05eed93e4f331845 (diff) |
libbgcode: init at 2023-11-16
(cherry picked from commit 33b855390864c109120a3f525c31a88f5f67c8cc)
-rw-r--r-- | pkgs/by-name/li/libbgcode/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libbgcode/package.nix b/pkgs/by-name/li/libbgcode/package.nix new file mode 100644 index 0000000000000..e4dd6099bc9de --- /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 ]; + }; +} |