Skip to content

Commit 35e48dc

Browse files
committed
flake
1 parent 912b115 commit 35e48dc

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ build
44
config.yaml
55
*-registration.yaml
66
database.db
7+
result
8+
.direnv

flake.lock

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
inputs = {
3+
utils.url = "github:numtide/flake-utils";
4+
nixpkgs.url = "nixpkgs/release-23.05";
5+
};
6+
7+
outputs = {
8+
self,
9+
nixpkgs,
10+
utils,
11+
}:
12+
utils.lib.eachDefaultSystem (system: let
13+
overlays = [];
14+
pkgs = (import nixpkgs) {
15+
inherit system overlays;
16+
};
17+
nodejs = pkgs.nodejs_18;
18+
in rec {
19+
# `nix develop`
20+
devShell = pkgs.mkShell {
21+
nativeBuildInputs = with pkgs; [nodejs.pkgs.node-pre-gyp nodejs.pkgs.node-gyp-build pkg-config which nodePackages.typescript python3];
22+
buildInputs = with pkgs; [libjpeg pixman cairo pango postgresql];
23+
};
24+
});
25+
}

0 commit comments

Comments
 (0)