mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
819 B
Nix
38 lines
819 B
Nix
{ fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
, rustPlatform
|
|
, scdoc
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "uair";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "metent";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-cxSNBxs6ixbjWMUYzOnwI+vavkfyaQx3/OmVdTCr7M0=";
|
|
};
|
|
|
|
cargoHash = "sha256-cDIF4RvJ7K6t18GPgiRV6NDoD/x3II/3wCHW3KK2/os=";
|
|
|
|
nativeBuildInputs = [ installShellFiles scdoc ];
|
|
|
|
preFixup = ''
|
|
scdoc < docs/uair.1.scd > docs/uair.1
|
|
scdoc < docs/uair.5.scd > docs/uair.5
|
|
scdoc < docs/uairctl.1.scd > docs/uairctl.1
|
|
|
|
installManPage docs/*.[1-9]
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Extensible pomodoro timer";
|
|
homepage = "https://github.com/metent/uair";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ thled ];
|
|
};
|
|
}
|