-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
31 lines (29 loc) · 892 Bytes
/
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
{
description = "jsonnet-language-server shell development tooling";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
{
overlay =
(
final: prev: {
jsonnet-language-server = prev.callPackage ./default.nix { pkgs = prev; };
snitch = prev.callPackage ./snitch.nix { pkgs = prev; };
}
);
} // (
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
in
{
defaultPackage = pkgs.jsonnet-language-server;
devShell = import ./shell.nix { inherit pkgs; };
packages = {
jsonnet-tool = pkgs.jsonnet-language-server;
};
}
)
);
}