This commit is contained in:
Patrick Stevens
2022-12-30 11:07:29 +00:00
committed by GitHub
parent 248c8b7220
commit f0f8504234
2 changed files with 13 additions and 2 deletions

View File

@@ -2,8 +2,13 @@
This is a small project to allow you to specify a [Gitea](https://github.com/go-gitea/) configuration in a declarative manner, and to resolve differences between intended and actual config. This is a small project to allow you to specify a [Gitea](https://github.com/go-gitea/) configuration in a declarative manner, and to resolve differences between intended and actual config.
# How to build # How to build and run
Just `dotnet build`. With Nix: `nix run github:Smaug123/dotnet-gitea-declarative -- --help`.
The config file you provide as an argument should conform to [the schema](./Gitea.Declarative.Lib/GiteaConfig.schema.json).
## Building from source
Just clone and `dotnet build`.
To upgrade the NuGet dependencies in the flake, run `nix build .#fetchDeps` and copy the resulting file into `nix/deps.nix`. To upgrade the NuGet dependencies in the flake, run `nix build .#fetchDeps` and copy the resulting file into `nix/deps.nix`.

View File

@@ -72,6 +72,12 @@
dotnet-runtime = dotnet-runtime; dotnet-runtime = dotnet-runtime;
}; };
}; };
apps = {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/Gitea.Declarative";
};
};
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
(with dotnetCorePackages; (with dotnetCorePackages;