34 lines
877 B
Nix
34 lines
877 B
Nix
{
|
||
description = "oleks's personal Flake hub – a place to publish custom packages and overlays";
|
||
|
||
inputs = {
|
||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
};
|
||
|
||
outputs =
|
||
{ self, nixpkgs, ... }:
|
||
let
|
||
system = "x86_64-linux";
|
||
pkgs = import nixpkgs { inherit system; };
|
||
in
|
||
{
|
||
packages.${system}.hello-world = pkgs.callPackage ./packages/hello-world.nix { };
|
||
|
||
overlays.default = final: prev: {
|
||
hello-world = final.callPackage ./packages/hello-world.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."
|
||
'';
|
||
};
|
||
};
|
||
}
|