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