diff --git a/pkgs/applications/version-management/git-credential-oauth/default.nix b/pkgs/applications/version-management/git-credential-oauth/default.nix new file mode 100644 index 000000000000..85125f62712c --- /dev/null +++ b/pkgs/applications/version-management/git-credential-oauth/default.nix @@ -0,0 +1,29 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "git-credential-oauth"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "hickford"; + repo = pname; + rev = "v${version}"; + hash = "sha256-f12PgTtfs/S9RI8+QFROkNqccRWeIW1/YkynqvKJc7I="; + }; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + vendorHash = "sha256-9X7ti3NR5MKK0MpiyTOTO+EtdMuu4/TW/diHq9FjSHY="; + + meta = { + description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth"; + homepage = "https://github.com/hickford/git-credential-oauth"; + changelog = "https://github.com/hickford/git-credential-oauth/releases/tag/${src.rev}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ shyim ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfc06d3f71d5..48f7abaae2bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1980,6 +1980,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation; }; + git-credential-oauth = callPackage ../applications/version-management/git-credential-oauth { }; + git-crypt = callPackage ../applications/version-management/git-crypt { }; git-delete-merged-branches = callPackage ../applications/version-management/git-delete-merged-branches { };