Skip to content

Commit ae39dc1

Browse files
committed
Add nix flake support
1 parent bd6d8e3 commit ae39dc1

File tree

16 files changed

+5641
-56
lines changed

16 files changed

+5641
-56
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ npm-debug.log
4141
# variables.
4242
.envrc
4343
/priv/plts/
44+
/.direnv
45+
/result

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "paddle"]
2+
path = paddle
3+
url = https://github.com/brianmay/paddle.git

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ENV APP_VSN=${APP_VSN} \
1414

1515
# By convention, /opt is typically used for applications
1616
WORKDIR /opt/app
17+
ENV TOP_SRC=/opt/app
1718

1819
# This step installs all the build tools we'll need
1920
RUN apk update && \

assets/default.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file has been generated by node2nix 1.11.1. Do not edit!
2+
3+
{pkgs ? import <nixpkgs> {
4+
inherit system;
5+
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:
6+
7+
let
8+
nodeEnv = import ./node-env.nix {
9+
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
10+
inherit pkgs nodejs;
11+
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
12+
};
13+
in
14+
import ./node-packages.nix {
15+
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
16+
inherit nodeEnv;
17+
}

0 commit comments

Comments
 (0)