9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
38 lines
986 B
Nix
38 lines
986 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, rustPlatform
|
|
, pkg-config
|
|
, openssl
|
|
, libgit2
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "klipper-estimator";
|
|
version = "3.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Annex-Engineering";
|
|
repo = "klipper_estimator";
|
|
rev = "v${version}";
|
|
hash = "sha256-sq0HWK+zH7Rj/XFgMrI4+SVhBXPbvvoSr3A/1Aq/Fa8=";
|
|
};
|
|
|
|
cargoHash = "sha256-QHSydaE867HaY7vBoV+v4p7G5qbQy5l3TemD3k41T4A=";
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libgit2 Security ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = with lib; {
|
|
description = "Tool for determining the time a print will take using the Klipper firmware";
|
|
homepage = "https://github.com/Annex-Engineering/klipper_estimator";
|
|
changelog = "https://github.com/Annex-Engineering/klipper_estimator/releases/tag/v${version}";
|
|
mainProgram = "klipper_estimator";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tmarkus ];
|
|
};
|
|
}
|