Skip to content

TGuimbert/weave-gitops-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weave-gitops-nix

This is a simple flake to build the gitops binary from the weave-gitops repository.

How to use

A minimal flake to use this package in a dev shell environment with nix develop:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    weave-gitops-nix.url = "github:TGuimbert/weave-gitops-nix";
  };

  outputs = { self, nixpkgs, weave-gitops-nix }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
    in
    {
      devShell.${system} = pkgs.mkShell {
        packages = [
          weave-gitops-nix.packages.${system}.gitops
        ];
      };
    };
}