From f6751bc435bdf00ffb6e1819cb4e176698556703 Mon Sep 17 00:00:00 2001 From: "Manu [tennox]" Date: Fri, 1 Nov 2024 17:34:29 +0000 Subject: [PATCH] task-keeper: init at 0.27.0 clean restart & squash for https://github.com/NixOS/nixpkgs/pull/236516 --- pkgs/by-name/ta/task-keeper/package.nix | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ta/task-keeper/package.nix diff --git a/pkgs/by-name/ta/task-keeper/package.nix b/pkgs/by-name/ta/task-keeper/package.nix new file mode 100644 index 000000000000..0e9d3916e07a --- /dev/null +++ b/pkgs/by-name/ta/task-keeper/package.nix @@ -0,0 +1,34 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + openssl, + pkg-config, +}: + +rustPlatform.buildRustPackage rec { + pname = "task-keeper"; + version = "0.27.0"; + + src = fetchFromGitHub { + owner = "linux-china"; + repo = "task-keeper"; + rev = "refs/tags/v${version}"; + hash = "sha256-lcwWl1ycMSmHgYT4m+CofwefqnjxjvuJkcv1Pe0OtEo="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + cargoHash = "sha256-OVDwaMpA2gw0asdQ+yNRKmcmXLs+ddJI/lodewXujro="; + + # tests depend on many packages (java, node, python, sbt, ...) - which I'm not currently willing to set up 😅 + doCheck = false; + + meta = { + homepage = "https://github.com/linux-china/task-keeper"; + description = "CLI to manage tasks from different task runners or package managers"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ tennox ]; + mainProgram = "tk"; + }; +}