Skip to content

Commit c860c37

Browse files
committed
added nix.
1 parent 7a2a63c commit c860c37

File tree

3 files changed

+88
-2
lines changed

3 files changed

+88
-2
lines changed

flake.lock

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
description = "react-modal flake";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
6+
};
7+
8+
outputs = { self, nixpkgs, flake-utils }:
9+
flake-utils.lib.eachDefaultSystem (system:
10+
let
11+
pkgs = import nixpkgs { inherit system; };
12+
inputs = with pkgs; [pkg-config nodejs_22 openssl];
13+
in {
14+
devShell = pkgs.mkShell {
15+
name = "react-modal";
16+
buildInputs = inputs;
17+
shellHook = ''
18+
export EDITOR=emacs;
19+
export NODE_OPTIONS=--openssl-legacy-provider;
20+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath[
21+
pkgs.openssl
22+
]};
23+
'';
24+
};
25+
});
26+
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)