Running with Dagger¶
Dagger provides a way to define tasks that can run on your favorite CI/CD platform or locally. Powered by Docker, it is incredibly easy to get up and running.
Installing Dagger¶
Read the official documentation for complete instructions.
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    dagger = {
      url = "github:dagger/nix";
      inputs = {
        nixpkgs.follows = "nixpkgs";
      };
    };
  };
  outputs = { self, nixpkgs, flake-utils, dagger }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      with pkgs;
      {
        devShells.default = mkShell {
          buildInputs = [
            dagger.packages.${system}.dagger
          ];
        };
      }
    );
}
Next semantic version¶
Calculates the next semantic version and prints it to stdout. For full configuration options.
Tagging the next version¶
Tags a repository with the next semantic version. For full configuration options.
Patching files with the next version¶
Patch files within a repository using the next semantic version. For full configuration options.