30 lines
710 B
Nix
Raw Normal View History

{
inputs = {
2024-05-26 12:37:30 +08:00
nixpkgs.url = "nixpkgs/nixos-unstable";
};
2024-05-26 12:37:30 +08:00
outputs = { nixpkgs, ... }:
let
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
foreachSystem = nixpkgs.lib.genAttrs systems;
in
{
packages = foreachSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
hello = pkgs.callPackage ./default.nix { };
2024-05-26 12:37:30 +08:00
default = hello;
2024-01-26 22:59:42 +08:00
});
2024-05-26 12:37:30 +08:00
devShells = foreachSystem
(system:
let
pkgs = import nixpkgs { inherit system; };
in
with pkgs; {
default = pkgs.callPackage ./shell.nix { };
});
};
}