mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2025-12-27 00:34:58 +08:00
21 lines
538 B
Nix
21 lines
538 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
hello-flake.url = "git+https://codeberg.org/mhwombat/hello-flake";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, hello-flake }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
devShells = rec {
|
|
default = pkgs.mkShell {
|
|
buildInputs = [ hello-flake.packages.${system}.hello ];
|
|
};
|
|
};
|
|
}
|
|
);
|
|
}
|