diff --git a/README.md b/README.md index 55ee598..e4b5385 100644 --- a/README.md +++ b/README.md @@ -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. -# 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`. diff --git a/flake.nix b/flake.nix index b9f3568..5002be4 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,12 @@ dotnet-runtime = dotnet-runtime; }; }; + apps = { + default = { + type = "app"; + program = "${self.packages.${system}.default}/bin/Gitea.Declarative"; + }; + }; devShell = pkgs.mkShell { buildInputs = with pkgs; [ (with dotnetCorePackages;