-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathflake.nix
More file actions
41 lines (37 loc) · 1.08 KB
/
flake.nix
File metadata and controls
41 lines (37 loc) · 1.08 KB
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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
nixpkgs,
self,
...
}: let
inherit (nixpkgs) legacyPackages lib;
# Compose for multiple systems. Please do not replace this with nix-systems as it is
# not guaranteed to build on platforms we haven't tested on.
systems = ["x86_64-linux"];
forEachSystem = lib.genAttrs systems;
pkgsForEach = legacyPackages;
in {
# Provide a formatter for `nix fmt`
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
packages = forEachSystem (system: let
pkgs = pkgsForEach.${system};
in {
default = self.packages.${system}.vermilion;
vermilion = pkgs.callPackage ./nix/package.nix {inherit self;};
});
devShells = forEachSystem (system: let
pkgs = pkgsForEach.${system};
in {
default = self.devShells.${system}.vermilion;
vermilion = pkgs.mkShellNoCC {
name = "vermilion-dev";
packages = with pkgs; [
# Eslint_d
nodejs-slim
pnpm
];
};
});
};
}