forked from juju/juju-qa-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
42 lines (41 loc) · 1.01 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
description = "juju qa jenkins job builder shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
};
outputs = { self, nixpkgs, ... } @ inputs:
let
forAllSystems = inputs.nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
"aarch64-darwin"
];
in
{
devShells = forAllSystems (system: {
default =
let
pkgs = nixpkgs.legacyPackages.${system};
in
pkgs.mkShell {
name = "juju-qa-jenkins";
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs; [
coreutils
findutils
gnumake
gnused
gnugrep
zsh
go
python3
shellcheck
];
shellHook = ''
exec zsh
'';
};
});
};
}