-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflake.nix
More file actions
26 lines (25 loc) · 832 Bytes
/
flake.nix
File metadata and controls
26 lines (25 loc) · 832 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
{
description = "Recrypt Node Binding";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
lib = import <nixpkgs/lib>;
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in
rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs.nodePackages; [
pkgs.nodejs_24
(pkgs.yarn.override { nodejs = pkgs.nodejs_24; })
pkgs.libiconv
];
nativeBuildInputs = [ pkgs.rust-bin.stable.latest.default ]
++ pkgs.lib.optionals (pkgs.stdenv.isDarwin) [ pkgs.darwin.cctools ];
};
});
}