-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (36 loc) · 1.17 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
{
description = "A simple sensor management API in Go";
inputs = {
devenv.url = "github:cachix/devenv";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
# nixConfig = {
# extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
# extra-substituters = "https://devenv.cachix.org";
# };
outputs = { self, nixpkgs, devenv, ... } @ inputs:
let
inherit (nixpkgs) lib;
supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem = f:
lib.genAttrs supportedSystems (system:
f {
inherit system;
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
});
in rec {
devShells = forEachSupportedSystem ({ pkgs, ... }: with pkgs; {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({ pkgs, config, ... }: {
languages.javascript.enable = true;
languages.javascript.npm.enable = true;
languages.typescript.enable = true;
packages = with pkgs; [ pulumi-bin ];
})
];
};
});
};
}