about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..0745b6f
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,28 @@
+{
+  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+  inputs.flake-utils.url = "github:numtide/flake-utils";
+
+  outputs = { self, nixpkgs, flake-utils }:
+      let
+        pkgs = nixpkgs.legacyPackages.x86_64-linux;
+      in
+      {
+         packages.x86_64-linux = {
+            default = pkgs.buildDotnetModule rec {
+              pname = "MatrixMediaGate-v${version}";
+              version = "1";
+              dotnet-sdk = pkgs.dotnet-sdk_8;
+              dotnet-runtime = pkgs.dotnet-aspnetcore_8;
+              selfContainedBuild = true;
+              src = ./.;
+              projectFile = [
+                "MatrixMediaGate/MatrixMediaGate.csproj"
+               ];
+              nugetDeps = MatrixMediaGate/deps.nix;
+              nativeBuildInputs = with pkgs; [
+                  gcc
+              ];
+            };
+        };
+    };
+}