From 91c57b18f53bde322823338c92e84b6556302830 Mon Sep 17 00:00:00 2001 From: Ersei Saggi Date: Tue, 5 Nov 2024 15:17:02 -0500 Subject: [PATCH] Allow for Fsharp code to be included --- SSO-Auth/Api/SSOController.cs | 1 + SSO-Auth/Lib/Lib.fsproj | 13 +++++++++++++ SSO-Auth/Lib/Library.fs | 5 +++++ SSO-Auth/SSO-Auth.csproj | 4 ++++ flake.lock | 6 +++--- 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 SSO-Auth/Lib/Lib.fsproj create mode 100644 SSO-Auth/Lib/Library.fs diff --git a/SSO-Auth/Api/SSOController.cs b/SSO-Auth/Api/SSOController.cs index 5c055bc..8a83a7d 100644 --- a/SSO-Auth/Api/SSOController.cs +++ b/SSO-Auth/Api/SSOController.cs @@ -23,6 +23,7 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using SSO_Auth.Lib; namespace Jellyfin.Plugin.SSO_Auth.Api; diff --git a/SSO-Auth/Lib/Lib.fsproj b/SSO-Auth/Lib/Lib.fsproj new file mode 100644 index 0000000..54c5484 --- /dev/null +++ b/SSO-Auth/Lib/Lib.fsproj @@ -0,0 +1,13 @@ + + + + net8.0 + SSO_Auth + true + + + + + + + diff --git a/SSO-Auth/Lib/Library.fs b/SSO-Auth/Lib/Library.fs new file mode 100644 index 0000000..efa20f0 --- /dev/null +++ b/SSO-Auth/Lib/Library.fs @@ -0,0 +1,5 @@ +namespace SSO_Auth.Lib + +module Say = + let hello name = + printfn "Hello %s" name diff --git a/SSO-Auth/SSO-Auth.csproj b/SSO-Auth/SSO-Auth.csproj index bd49837..3e3910f 100644 --- a/SSO-Auth/SSO-Auth.csproj +++ b/SSO-Auth/SSO-Auth.csproj @@ -42,6 +42,10 @@ + + + + ../jellyfin.ruleset diff --git a/flake.lock b/flake.lock index 2163034..780301c 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1717399147, - "narHash": "sha256-eCWaE/q1VItpFAxxLVt171MdtDcjEnwi6QB/yuF73JU=", + "lastModified": 1730768919, + "narHash": "sha256-8AKquNnnSaJRXZxc5YmF/WfmxiHX6MMZZasRP6RRQkE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4a4ecb0ab415c9fccfb005567a215e6a9564cdf5", + "rev": "a04d33c0c3f1a59a2c1cb0c6e34cd24500e5a1dc", "type": "github" }, "original": {