forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters