2024-07-08 09:35:53 -05:00
|
|
|
{
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-24.05";
|
2024-07-08 12:18:24 -05:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-07-08 09:35:53 -05:00
|
|
|
systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
|
|
|
|
pkgsFor = func: (nixpkgs.lib.genAttrs systems (system: (func (import nixpkgs {inherit system;}))));
|
|
|
|
in {
|
|
|
|
packages = pkgsFor (pkgs: {
|
2024-07-08 12:18:24 -05:00
|
|
|
default = pkgs.callPackage ./what-is-my-ip.nix {};
|
|
|
|
});
|
|
|
|
|
|
|
|
devShells = pkgsFor (pkgs: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = [self.outputs.packages.${pkgs.system}.default];
|
|
|
|
shellHook = ''
|
|
|
|
echo "Hello, Nix!"
|
|
|
|
'';
|
|
|
|
};
|
2024-07-08 09:35:53 -05:00
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|