2023-11-25 01:34:15 +01:00
|
|
|
{ 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";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "bgcode";
|
2023-11-25 01:34:15 +01:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ lach ];
|
2024-01-27 02:48:03 +01:00
|
|
|
platforms = platforms.unix;
|
2023-11-25 01:34:15 +01:00
|
|
|
};
|
|
|
|
}
|