aboutsummaryrefslogtreecommitdiff
path: root/flakes/surfer/default.nix
blob: 7a25199865df3402204ac7dcd400cc01b08c34de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ callPackage, nodeEnv, src }:
# built using node2nix -l package-lock.json
# and changing "./." to "src"
(callPackage ./node-packages.nix {
  inherit src;
  nodeEnv = callPackage nodeEnv {};
}).package.overrideAttrs(old: {
  postInstall = ''
    mkdir -p $out/bin
    ln -s ../cloudron-surfer/server.js $out/lib/node_modules/.bin/surfer-server
  '';
})