about summary refs log tree commit diff
path: root/flake.nix
blob: 2e7409bd22506595aa9590ada712e2d5a587fe4c (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
{
  #inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  inputs.nixpkgs.url = "path:/home/root@Rory/git/Matrix/MatrixRoomUtils/nixpkgs";
  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 = {
            web = pkgs.buildDotnetModule rec {
              pname = "MatrixRoomUtils.Web-v${version}";
              version = "1";
              dotnet-sdk = pkgs.dotnet-sdk_7;
              dotnet-runtime = pkgs.dotnet-aspnetcore_7;
              src = ./.;
              projectFile = [
                "MatrixRoomUtils.Web/MatrixRoomUtils.Web.csproj"
               ];
              nugetDeps = MatrixRoomUtils.Web/deps.nix;
              #nativeBuildInputs = with pkgs; [
              #  pkg-config
              #];
            };
        };
    };
}