45 lines
1.1 KiB
Nix
45 lines
1.1 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";
|
||
};
|
||
|
||
outputs =
|
||
{
|
||
self,
|
||
nixpkgs,
|
||
fleet-pins,
|
||
...
|
||
}:
|
||
let
|
||
system = "x86_64-linux";
|
||
pkgs = import nixpkgs { inherit system; };
|
||
in
|
||
{
|
||
packages.${system} = 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.${system}.default = pkgs.mkShell {
|
||
name = "oleks-hub-shell";
|
||
buildInputs = [ self.packages.${system}.hello-world ];
|
||
nativeBuildInputs = with pkgs; [
|
||
nix
|
||
fmt
|
||
];
|
||
shellHook = ''
|
||
echo "Welcome to the oleks Flake hub development shell."
|
||
'';
|
||
};
|
||
};
|
||
}
|