about summary refs log tree commit diff
path: root/flake.nix
blob: d45deba426f55334f9ecc8c20ed7466b154693c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  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
              ];
              meta = {
                mainProgram = "MatrixMediaGate";
              };
            };
        };
    };
}