Skip to content

Commit

Permalink
oauth2ms: init at 2021-07-09
Browse files Browse the repository at this point in the history
  • Loading branch information
wentasah committed Aug 29, 2023
1 parent a2a7775 commit 940760d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/tools/networking/oauth2ms/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitHub, python3 }:

stdenv.mkDerivation {
pname = "oauth2ms";
version = "2021-07-09";

src = fetchFromGitHub {
owner = "harishkrupo";
repo = "oauth2ms";
rev = "a1ef0cabfdea57e9309095954b90134604e21c08"; # No tags or releases in the repo
sha256 = "sha256-xPSWlHJAXhhj5I6UMjUtH1EZqCZWHJMFWTu3a4k1ETc";
};

buildInputs = [
(python3.withPackages (ps: with ps; [
pyxdg
msal
python-gnupg
]))
];

installPhase = ''
runHook preInstall
install -m755 -D oauth2ms $out/bin/oauth2ms
runHook postInstall
'';

meta = with lib; {
homepage = "https://github.com/harishkrupo/oauth2ms";
description = "XOAUTH2 compatible Office365 token fetcher";
platforms = platforms.all;
license = licenses.asl20;
maintainers = with maintainers; [ wentasah ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4666,6 +4666,8 @@ with pkgs;

nyx = callPackage ../tools/networking/nyx { };

oauth2ms = callPackage ../tools/networking/oauth2ms { };

oci-cli = callPackage ../tools/admin/oci-cli { };

ocrmypdf = with python3.pkgs; toPythonApplication ocrmypdf;
Expand Down

0 comments on commit 940760d

Please sign in to comment.