Flake test
This commit is contained in:
parent
8780b83dd7
commit
eac26713c7
56
flake.nix
56
flake.nix
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue