diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..30ca8c7 --- /dev/null +++ b/flake.nix @@ -0,0 +1,44 @@ +aospkgs/flake.nix { + description = "AOSPKGS: Nix package repository for Apache Hop and related packages"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs"; + + outputs = + { self, nixpkgs }: + let + supportedSystems = [ + "x86_64-linux" + "aarch64-linux" + ]; + forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system); + in + { + packages = forAllSystems ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + apache-hop = pkgs.callPackage ./pkgs/apache-hop { }; + } + ); + + defaultPackage = forAllSystems (system: self.packages.${system}.apache-hop); + + overlay = final: prev: { + apache-hop = final.callPackage ./pkgs/apache-hop { }; + }; + + devShells = forAllSystems ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + default = pkgs.mkShell { + packages = [ self.packages.${system}.apache-hop ]; + }; + } + ); + }; +}