-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (31 loc) · 899 Bytes
/
flake.nix
File metadata and controls
33 lines (31 loc) · 899 Bytes
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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
# some symlink/relative path shenanigans happening 🤷
esy = pkgs.writeShellScriptBin "esy" "${pkgs.nodePackages.esy}/lib/node_modules/.bin/esy $@";
in
rec {
packages = {
relog = pkgs.callPackage ./. { inherit pkgs; };
};
defaultPackage = packages.relog;
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
libsodium
esy
ocamlformat
ocamlPackages.ocaml-lsp
ocamlPackages.reason
ocamlPackages.dune_2
];
};
}
);
}