Skip to content

Commit 617e0df

Browse files
committed
Switch to flakes
1 parent 16a3314 commit 617e0df

File tree

3 files changed

+66
-4
lines changed

3 files changed

+66
-4
lines changed

flake.lock

Lines changed: 42 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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
description = "Setup Emacs Action";
3+
4+
inputs =
5+
{
6+
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
7+
flake-utils.url = "github:numtide/flake-utils";
8+
};
9+
10+
outputs = { self, nixpkgs, flake-utils }:
11+
flake-utils.lib.eachDefaultSystem (system:
12+
let
13+
pkgs = import nixpkgs { inherit system; };
14+
in
15+
{
16+
devShell = pkgs.mkShell {
17+
buildInputs = with pkgs; [nodejs-16_x];
18+
shellHook = ''
19+
PATH="$PATH:$(pwd)/node_modules/.bin"
20+
'';
21+
};
22+
}
23+
);
24+
}

shell.nix

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)