nixpkgs/pkgs/by-name/vi/viddy/package.nix
phanirithvij 458173b1f7 viddy: 1.2.0 -> 1.2.1
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2024-11-19 07:58:15 +05:30

40 lines
923 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "viddy";
version = "1.2.1";
src = fetchFromGitHub {
owner = "sachaos";
repo = "viddy";
rev = "v${version}";
hash = "sha256-lk992sI5kXo5Q8+rgBCKo/knV3/6uPs83Zj27JQcR6M=";
};
cargoHash = "sha256-9xXUlsRGKw0rvIYAr4pMDh6oD/ZjBYPaL0g6dCC5sCo=";
# requires nightly features
env.RUSTC_BOOTSTRAP = 1;
env.VERGEN_BUILD_DATE = "2024-11-16"; # managed via the update script
env.VERGEN_GIT_DESCRIBE = "Nixpkgs";
passthru.updateScript.command = [ ./update.sh ];
meta = {
description = "Modern watch command, time machine and pager etc.";
changelog = "https://github.com/sachaos/viddy/releases";
homepage = "https://github.com/sachaos/viddy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
j-hui
phanirithvij
];
mainProgram = "viddy";
};
}