flake compat

This commit is contained in:
AG 2025-10-24 09:51:40 +02:00
parent d5e447a086
commit 46cfb325bb
1 changed files with 44 additions and 0 deletions

44
flake.nix Normal file
View File

@ -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 ];
};
}
);
};
}