mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-05 15:38:41 +00:00
Nix run (#6)
This commit is contained in:
@@ -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`.
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user