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 = outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in
{ {
packages = forAllSystems ( nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in pkgset = {
{
apache-hop = pkgs.callPackage ./pkgs/apache-hop { }; 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 in
{ {
default = pkgs.mkShell { packages = pkgset;
packages = [ self.packages.${system}.apache-hop ];
};
} }
); );
};
} }