Don't build for aarch64-darwin & apply nixpkgs-fmt
This commit is contained in:
parent
1df414c615
commit
d4f2d37930
1 changed files with 51 additions and 45 deletions
|
@ -6,54 +6,60 @@
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs = { self, flake-utils, devshell, nixpkgs }:
|
outputs = { self, flake-utils, devshell, nixpkgs }:
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachSystem [
|
||||||
let
|
"aarch64-linux"
|
||||||
pkgs = import nixpkgs {
|
"i686-linux"
|
||||||
inherit system;
|
"x86_64-darwin"
|
||||||
};
|
"x86_64-linux"
|
||||||
in
|
]
|
||||||
{
|
(system:
|
||||||
# Internal utility package with shell function and env vars helper.
|
let
|
||||||
# These get source'd in devshell.bash.extra when starting tritonshell
|
pkgs = import nixpkgs {
|
||||||
packages = {
|
inherit system;
|
||||||
triton-utils = import ./pkgs/triton-utils.nix { inherit pkgs; };
|
};
|
||||||
triton-docker-env =
|
in
|
||||||
|
{
|
||||||
|
# Internal utility package with shell function and env vars helper.
|
||||||
|
# These get source'd in devshell.bash.extra when starting tritonshell
|
||||||
|
packages = {
|
||||||
|
triton-utils = import ./pkgs/triton-utils.nix { inherit pkgs; };
|
||||||
|
triton-docker-env =
|
||||||
|
let
|
||||||
|
# CUSTOMIZE:
|
||||||
|
# variables used to set triton env vars in tritonshell
|
||||||
|
# adjust to suit your Triton Data Center setup
|
||||||
|
# take a look at ./pkgs/triton-docker-env-shell.nix to see how these get used
|
||||||
|
cnsBaseDomain = "greenbaum.zone";
|
||||||
|
dataCenters = [ "cgn-1" "lev-1" ];
|
||||||
|
mantaDomain = "eu-central.manta.greenbaum.cloud";
|
||||||
|
tritonApiDomain = "api.greenbaum.cloud";
|
||||||
|
in
|
||||||
|
import ./pkgs/triton-docker-env.nix {
|
||||||
|
inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.default =
|
||||||
let
|
let
|
||||||
# CUSTOMIZE:
|
pkgs = import nixpkgs {
|
||||||
# variables used to set triton env vars in tritonshell
|
inherit system;
|
||||||
# adjust to suit your Triton Data Center setup
|
|
||||||
# take a look at ./pkgs/triton-docker-env-shell.nix to see how these get used
|
|
||||||
cnsBaseDomain = "greenbaum.zone";
|
|
||||||
dataCenters = [ "cgn-1" "lev-1" ];
|
|
||||||
mantaDomain = "eu-central.manta.greenbaum.cloud";
|
|
||||||
tritonApiDomain = "api.greenbaum.cloud";
|
|
||||||
in
|
|
||||||
import ./pkgs/triton-docker-env.nix {
|
|
||||||
inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.default =
|
overlays = [
|
||||||
let
|
devshell.overlay
|
||||||
pkgs = import nixpkgs {
|
(import ./overlay.nix)
|
||||||
inherit system;
|
];
|
||||||
|
};
|
||||||
|
|
||||||
overlays = [
|
# HINT: add your extra devshell pkgs here, use any packages you want
|
||||||
devshell.overlay
|
# available in your devshell's PATH
|
||||||
(import ./overlay.nix)
|
# Use https://search.nixos.org/packages to find available packages
|
||||||
|
# in the unstable channel
|
||||||
|
# These get appended to devshell.packages in ./tritonshell.nix
|
||||||
|
extraDevshellPkgs = with pkgs; [
|
||||||
|
#hello
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
# HINT: add your extra devshell pkgs here, use any packages you want
|
in
|
||||||
# available in your devshell's PATH
|
import ./tritonshell.nix { inherit extraDevshellPkgs devshell pkgs self system; };
|
||||||
# Use https://search.nixos.org/packages to find available packages
|
});
|
||||||
# in the unstable channel
|
|
||||||
# These get appended to devshell.packages in ./tritonshell.nix
|
|
||||||
extraDevshellPkgs = with pkgs; [
|
|
||||||
#hello
|
|
||||||
];
|
|
||||||
|
|
||||||
in
|
|
||||||
import ./tritonshell.nix { inherit extraDevshellPkgs devshell pkgs self system; };
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue