diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-11-16 12:53:32 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-11-16 12:53:32 +0100 |
commit | 67419f0e56f99b0ebbe14574d3492110ac84c8d6 (patch) | |
tree | 3abc8e1606a2c80b6f5d14fef175e50800202163 /nixpkgs/pkgs/by-name/oa/oauth2l/package.nix | |
parent | a2c1eff83c3118a9aee8076c7f84f58137416b6e (diff) | |
parent | 9008bc4eb62c878d0812105ea1b34255d651df88 (diff) | |
download | nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar.gz nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar.bz2 nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar.lz nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar.xz nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.tar.zst nixlib-67419f0e56f99b0ebbe14574d3492110ac84c8d6.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs into HEAD
Diffstat (limited to 'nixpkgs/pkgs/by-name/oa/oauth2l/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/oa/oauth2l/package.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/oa/oauth2l/package.nix b/nixpkgs/pkgs/by-name/oa/oauth2l/package.nix new file mode 100644 index 000000000000..612575d2b266 --- /dev/null +++ b/nixpkgs/pkgs/by-name/oa/oauth2l/package.nix @@ -0,0 +1,35 @@ +{ stdenv +, lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "oauth2l"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "oauth2l"; + rev = "v${version}"; + hash = "sha256-bL1bys/CBo/P9VfWc/FB8JHW/aBwC521V8DB1sFBIAA="; + }; + + vendorHash = null; + + ldflags = [ "-s" "-w" ]; + + # Fix tests by preventing them from writing to /homeless-shelter. + preCheck = "export HOME=$(mktemp -d)"; + + # tests fail on linux for some reason + doCheck = stdenv.isDarwin; + + meta = with lib; { + description = "Simple CLI for interacting with Google API authentication"; + homepage = "https://github.com/google/oauth2l"; + license = licenses.asl20; + maintainers = with maintainers; [ happysalada ]; + mainProgram = "oauth2l"; + }; +} |