2024-08-20 15:47:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2021-09-14 14:36:23 +00:00
|
|
|
|
2024-08-20 15:47:56 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-09-14 14:36:23 +00:00
|
|
|
pname = "viddy";
|
2024-10-01 09:04:49 +00:00
|
|
|
version = "1.1.5";
|
2021-09-14 14:36:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sachaos";
|
2024-08-20 15:47:56 +00:00
|
|
|
repo = "viddy";
|
2021-09-14 14:36:23 +00:00
|
|
|
rev = "v${version}";
|
2024-10-01 09:04:49 +00:00
|
|
|
hash = "sha256-RewzToI7vhaH8r6ZWDLgfSJOOCm26Udkzh9+xkJP2jE=";
|
2021-09-14 14:36:23 +00:00
|
|
|
};
|
|
|
|
|
2024-10-01 09:04:49 +00:00
|
|
|
cargoHash = "sha256-NhgiaUEUTfsbVqFkBgLPc3A8XmtwgQ5tp673zFD4TGI=";
|
2021-09-14 14:36:23 +00:00
|
|
|
|
2024-08-20 15:47:56 +00:00
|
|
|
# requires nightly features
|
|
|
|
env.RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
2024-10-01 09:04:49 +00:00
|
|
|
env.VERGEN_BUILD_DATE = "2024-09-30"; # managed via the update script
|
2024-08-20 15:47:56 +00:00
|
|
|
env.VERGEN_GIT_DESCRIBE = "Nixpkgs";
|
|
|
|
|
|
|
|
passthru.updateScript.command = [ ./update.sh ];
|
2021-09-14 14:36:23 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-08-20 15:47:56 +00:00
|
|
|
description = "Modern watch command, time machine and pager etc.";
|
|
|
|
changelog = "https://github.com/sachaos/viddy/releases";
|
2021-09-14 14:36:23 +00:00
|
|
|
homepage = "https://github.com/sachaos/viddy";
|
|
|
|
license = licenses.mit;
|
2024-08-20 17:39:36 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
j-hui
|
|
|
|
phanirithvij
|
|
|
|
];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "viddy";
|
2021-09-14 14:36:23 +00:00
|
|
|
};
|
|
|
|
}
|