New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdrive: init at 2.1.0 #24848
gdrive: init at 2.1.0 #24848
Conversation
homepage = https://github.com/prasmussen/gdrive; | ||
description = "A command line utility for interacting with Google Drive"; | ||
platforms = platforms.linux; | ||
license = licenses.mit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to maintain this package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mic92 Yes! I'm not part of nixpkgs/lib/maintainers.nix
, should I add myself in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just do it in this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, preferably in a separate commit. So commit 1: add lib/maintainers.entry, commit 2: add package using your new entry in maintainers.nix.
Reasoning: sometimes when backporting to the stable branch, it's nice if the maintainers entry is decoupled from other changes.
Adds the go-based Google Drive CLI application "gdrive".
Made changes suggested from review by @Mic92 and @bjornfor. Edit: I also added the package to top-level since I forgot that in my initial commit. After I made the changes I ran:
|
Motivation for this change
Needed to upload some stuff to Google Drive, didn't find gdrive in nixpkgs,
created a package, installed it, it worked, thought "why not add the package?".
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)This package should work in macOS too, but I have not tested it on macOS, therefor I added
platforms.linux
Running this script in the root of the nixpkgs project:
Should result in the following output:
I tested running the list command against a newly created google account. After
authenticating it worked:
I have also successfully uploaded files.