Commitdfb6598fRecorded25 Mar 2026Repositorysigil-oauth

Initial package scaffolding

Changed
 dev-redirects.sgl |  6 ++++++
 package.sgl       | 43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
Diff
dev-redirects.sgladded
@@ -0,0 +1,6 @@
+1
;; Development redirects — point dependencies at local checkouts
+2
(redirects
+3
repos: (list
+4
(for-repo
+5
url: "codeberg:sigil/sigil"
+6
use: (from-path dir: "../sigil"))))
package.sgladded
@@ -0,0 +1,43 @@
+1
;;; sigil-oauth - OAuth 2.0 client library for Sigil
+2
;;;
+3
;;; Shared OAuth2 implementation for authorization code flow,
+4
;;; token refresh, token storage, and local redirect handling.
+5
;;; Used by sigil-youtube, sigil-twitch, and other API clients.
+6
+7
(define sigil-repo "codeberg:sigil/sigil")
+8
+9
(package
+10
name: "sigil-oauth"
+11
version: "0.1.0"
+12
description: "OAuth 2.0 client library for Sigil"
+13
url: "https://codeberg.org/sigil/sigil-oauth"
+14
license: "BSD-3-Clause"
+15
authors: (list "David Wilson <[email protected]>")
+16
+17
configs: (list
+18
(config
+19
name: 'dev
+20
output-dir: "build/dev"
+21
debug?: #t
+22
optimize: 0)
+23
(config
+24
name: 'release
+25
output-dir: "build/release"
+26
debug?: #f
+27
optimize: 2))
+28
+29
dependencies: (list
+30
(from-git url: sigil-repo package: "sigil-stdlib")
+31
(from-git url: sigil-repo package: "sigil-tls")
+32
(from-git url: sigil-repo package: "sigil-http")
+33
(from-git url: sigil-repo package: "sigil-json")
+34
(from-git url: sigil-repo package: "sigil-crypto")
+35
(from-git url: sigil-repo package: "sigil-log"))
+36
+37
tasks: (list
+38
(task
+39
name: 'build
+40
description: "Compile sigil-oauth modules"
+41
steps: (list
+42
(compile-sigil-modules sources: "src/**/*.sgl"
+43
output-dir: (config-output-subdir "lib"))))))