-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
43 lines (37 loc) · 1.14 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
43
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.514192.tar.gz";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.0.1.tar.gz";
};
outputs = { self, ... }@inputs:
let
inherit (inputs.nixpkgs) lib;
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
version = "${builtins.substring 0 8 lastModifiedDate}-${self.shortRev or "dirty"}";
forSystems = s: f: lib.genAttrs s (system: f rec {
inherit system;
pkgs = import inputs.nixpkgs { inherit system; config.allowUnfree = true; };
});
forAllSystems = forSystems [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
in
{
devShells = forAllSystems ({ system, pkgs, ... }:
{
default = pkgs.mkShell {
name = "dev";
buildInputs = with pkgs; [
curl
findutils
git-absorb
go
golint
gotools
jq
oapi-codegen
shellcheck
terraform_1
];
};
});
};
}