flake compat
This commit is contained in:
parent
d5e447a086
commit
46cfb325bb
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue