depot/third_party/nixpkgs/pkgs/applications/misc/klipper-estimator/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
1 KiB
Nix

{ lib
, fetchFromGitHub
, stdenv
, rustPlatform
, pkg-config
, openssl
, libgit2
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "klipper-estimator";
version = "3.6.0";
src = fetchFromGitHub {
owner = "Annex-Engineering";
repo = "klipper_estimator";
rev = "v${version}";
hash = "sha256-1Od4sIHrg52DezV5DCg2NVv/2nbXQW3fK6f9aqVmlTk=";
};
cargoHash = "sha256-5O2KUTegK5ArTalJ57/Kn9lzlkmAIXnzluljvfrIc5U=";
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin [ libgit2 Security SystemConfiguration ];
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 ];
};
}