From 06be7bed0c640c21503f75ce834a6fde2fc905ba Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 10 Oct 2023 21:24:28 +0200 Subject: Initial commit --- flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..851a880 --- /dev/null +++ b/flake.nix @@ -0,0 +1,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 + #]; + }; + }; + }; +} -- cgit 1.4.1