pkgs: add gphotos-cdp

This commit is contained in:
Harsh Shandilya 2024-01-28 20:00:14 +05:30
parent 29e2ab36df
commit d8672c5940
3 changed files with 31 additions and 0 deletions

View File

@ -13,6 +13,7 @@ NixOS packages for personal use.
- [file-collector] : Simple CLI tool to watch directories and move their files to a single dumping ground
- [gdrive] : Golang CLI to interact with Google Drive
- [gitice] : Simple Rust CLI that snapshots the state of Git repositories to allow re-cloning in a separate location
- [gphotos-cdp] : Use the Chrome DevTools Protocol to drive a Chrome session that downloads your photos stored in Google Photos.
- [hcctl]: CLI to look up the status of checks on https://healthchecks.io
- [healthchecks-monitor]: CLI tool to run commands and report its result to https://healthchecks.io
- [hyperlink]: Very fast link checker for CI
@ -36,6 +37,7 @@ NixOS packages for personal use.
[file-collector]: https://msfjarvis.dev/g/file-collector
[gdrive]: https://msfjarvis.dev/g/gdrive
[gitice]: https://msfjarvis.dev/g/gitice
[gphotos-cdp]: https://msfjarvis.dev/g/gphotos-cdp
[hcctl]: https://msfjarvis.dev/g/healthchecks-rs
[healthchecks-monitor]: https://msfjarvis.dev/g/healthchecks-rs
[hyperlink]: https://github.com/untitaker/hyperlink

View File

@ -17,6 +17,7 @@ in {
inherit (fenix) fromManifestFile;
inherit rust-manifest;
};
gphotos-cdp = callPackage ./gphotos-cdp {};
hcctl = callPackage ./hcctl {};
healthchecks-monitor = callPackage ./healthchecks-monitor {};
hyperlink = callPackage ./hyperlink {};

View File

@ -0,0 +1,28 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
pname = "gphotos-cdp";
version = "unstable-2024-01-28";
src = fetchFromGitHub {
owner = "msfjarvis";
repo = "gphotos-cdp";
rev = "4262092a2fe585f4b66bd50bd4c235e8f24824f6";
hash = "sha256-xLCldbD37JEDQTwFSUqiEOM09vH+KaB/I8O3WoNqR6A=";
};
vendorHash = "sha256-FzGDVMKzAjISb4P7/vBIBTbBWpyAUnR26gXcvUWnjHw=";
ldflags = ["-s" "-w"];
meta = with lib; {
description = "This program uses the Chrome DevTools Protocol to drive a Chrome session that downloads your photos stored in Google Photos";
homepage = "https://github.com/msfjarvis/gphotos-cdp";
license = licenses.asl20;
maintainers = with maintainers; [];
mainProgram = "gphotos-cdp";
};
}