about summary refs log tree commit diff
path: root/flake.nix
blob: 851a880962c4a76d2ff888a5efeb29c7f91cf99e (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 = {
            default = pkgs.buildDotnetModule rec {
              pname = "OsuFederatedBeatmapApi-v${version}";
              version = "1";
              dotnet-sdk = pkgs.dotnet-sdk_7;
              dotnet-runtime = pkgs.dotnet-aspnetcore_7;
              src = ./.;
              projectFile = [
                "OsuFederatedBeatmapApi/OsuFederatedBeatmapApi.csproj"
               ];
              nugetDeps = OsuFederatedBeatmapApi/deps.nix;
              #nativeBuildInputs = with pkgs; [
              #  pkg-config
              #];
            };
        };
    };
}