Skip to content

Commit

Permalink
Merge pull request #223435 from hesiod/klipper-estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault authored Apr 3, 2023
2 parents e863220 + 2adfe80 commit ad2031b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/applications/misc/klipper-estimator/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, stdenv
, rustPlatform
, pkg-config
, openssl
, libgit2
, Security
}:

rustPlatform.buildRustPackage rec {
pname = "klipper-estimator";
version = "3.2.1";

src = fetchFromGitHub {
owner = "Annex-Engineering";
repo = "klipper_estimator";
rev = "v${version}";
hash = "sha256-0QDEaRJpjiE7aH6PpessCGUe4TT31FhsxTFw7OglPUc=";
};

cargoHash = "sha256-W0Vo4bA2QNfzBqcZiblf6eJnQ3cRgrnNELzS9O1O6bU=";

buildInputs =
[ openssl ]
++ lib.optional 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 ];
};
}

4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5159,6 +5159,10 @@ with pkgs;

klipper-genconf = callPackage ../servers/klipper/klipper-genconf.nix { };

klipper-estimator = callPackage ../applications/misc/klipper-estimator {
inherit (darwin.apple_sdk.frameworks) Security;
};

klog = qt5.callPackage ../applications/radio/klog { };

komga = callPackage ../servers/komga { };
Expand Down

0 comments on commit ad2031b

Please sign in to comment.