Flake test

This commit is contained in:
AG 2025-10-30 15:12:38 +01:00
parent 8780b83dd7
commit eac26713c7
1 changed files with 20 additions and 36 deletions

View File

@ -1,44 +1,28 @@
{
description = "AOSPKGS: Nix package repository for Apache Hop and related packages";
description = "aospkgs - collection of Nix packages (flake)";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
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
{
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
pkgset = {
apache-hop = pkgs.callPackage ./pkgs/apache-hop { };
}
);
};
in
{
packages = pkgset;
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 ];
};
}
);
};
}
);
}