56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
||
description = "oleks's personal Flake hub – a place to publish custom packages and overlays";
|
||
|
||
inputs = {
|
||
fleet-pins.url = "git+https://git.oleks.space/oleks/fleet-pins?ref=main";
|
||
nixpkgs.follows = "fleet-pins/nixpkgs-projects";
|
||
flake-utils.url = "github:numtide/flake-utils";
|
||
};
|
||
|
||
outputs =
|
||
{
|
||
self,
|
||
nixpkgs,
|
||
fleet-pins,
|
||
flake-utils,
|
||
...
|
||
}:
|
||
let
|
||
supportedSystems = [
|
||
"x86_64-linux"
|
||
"aarch64-linux"
|
||
"s390x-linux"
|
||
];
|
||
in
|
||
flake-utils.lib.eachSystem supportedSystems (
|
||
system:
|
||
let
|
||
pkgs = import nixpkgs { inherit system; };
|
||
in
|
||
{
|
||
packages = rec {
|
||
hello-world = pkgs.callPackage ./packages/hello-world.nix { };
|
||
xonsh = pkgs.callPackage ./packages/xonsh.nix { };
|
||
default = hello-world;
|
||
};
|
||
|
||
overlays.default = final: prev: {
|
||
hello-world = final.callPackage ./packages/hello-world.nix { };
|
||
xonsh = final.callPackage ./packages/xonsh.nix { };
|
||
};
|
||
|
||
devShells.default = pkgs.mkShell {
|
||
name = "oleks-hub-shell";
|
||
buildInputs = [ self.packages.${system}.default ];
|
||
nativeBuildInputs = with pkgs; [
|
||
nix
|
||
fmt
|
||
];
|
||
shellHook = ''
|
||
echo "Welcome to the oleks Flake hub development shell."
|
||
'';
|
||
};
|
||
}
|
||
);
|
||
}
|