forked from mirrors/nixpkgs
Merge pull request #235272 from soywod/add-comodoro
comodoro: init at 0.0.8
This commit is contained in:
commit
0406bbc337
47
pkgs/applications/misc/comodoro/default.nix
Normal file
47
pkgs/applications/misc/comodoro/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
, installShellFiles
|
||||||
|
, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||||
|
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||||
|
, withTcp ? true
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "comodoro";
|
||||||
|
version = "0.0.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "soywod";
|
||||||
|
repo = "comodoro";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "rGnVXyfWJkPHfpf1gRGbDJ6Y1ycKOOcCZ+Jx35fUo6M=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "jpshuavywCLN03xD/gFgQeGbKtmHq5pULbxd+RUbaDk=";
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optional (installManPages || installShellCompletions) installShellFiles;
|
||||||
|
|
||||||
|
buildNoDefaultFeatures = true;
|
||||||
|
buildFeatures = lib.optional withTcp "tcp";
|
||||||
|
|
||||||
|
postInstall = lib.optionalString installManPages ''
|
||||||
|
mkdir -p $out/man
|
||||||
|
$out/bin/comodoro man $out/man
|
||||||
|
installManPage $out/man/*
|
||||||
|
'' + lib.optionalString installShellCompletions ''
|
||||||
|
installShellCompletion --cmd comodoro \
|
||||||
|
--bash <($out/bin/comodoro completion bash) \
|
||||||
|
--fish <($out/bin/comodoro completion fish) \
|
||||||
|
--zsh <($out/bin/comodoro completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "CLI to manage your time.";
|
||||||
|
homepage = "https://pimalaya.org/comodoro/";
|
||||||
|
changelog = "https://github.com/soywod/comodoro/blob/v${version}/CHANGELOG.md";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ soywod ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -481,6 +481,8 @@ with pkgs;
|
||||||
|
|
||||||
commix = callPackage ../tools/security/commix { };
|
commix = callPackage ../tools/security/commix { };
|
||||||
|
|
||||||
|
comodoro = callPackage ../applications/misc/comodoro { };
|
||||||
|
|
||||||
compdb = callPackage ../tools/misc/compdb { };
|
compdb = callPackage ../tools/misc/compdb { };
|
||||||
|
|
||||||
conserver = callPackage ../tools/misc/conserver { };
|
conserver = callPackage ../tools/misc/conserver { };
|
||||||
|
|
Loading…
Reference in a new issue