dotfiles/packages/gphotos-cdp/default.nix

32 lines
773 B
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "gphotos-cdp";
version = "1.0.0";
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; [ msfjarvis ];
mainProgram = "gphotos-cdp";
};
}