2023-02-02 18:25:31 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, scdoc
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "uair";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "v0.5.1";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "metent";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-qxfdKU3SFGVpp3OG0m+0qDvs5cB2bAaTF8+K6zwXRnI=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cargoHash = "sha256-XmEbXzpynkUPXywaf4wPcWq9zf3gNOHkcVr2jz3WNnc=";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
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 = "An extensible pomodoro timer";
|
|
|
|
homepage = "https://github.com/metent/uair";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thled ];
|
|
|
|
};
|
|
|
|
}
|