92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
39 lines
908 B
Nix
39 lines
908 B
Nix
{ stdenv
|
|
, pkgs
|
|
, lib
|
|
, nodejs-16_x
|
|
, runtimeShell
|
|
}:
|
|
|
|
let
|
|
nodejs = nodejs-16_x;
|
|
|
|
nodePackages = import ./node-packages.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
|
|
whitebophir = lib.head (lib.attrValues nodePackages);
|
|
|
|
combined = whitebophir.override {
|
|
postInstall = ''
|
|
out_whitebophir=$out/lib/node_modules/whitebophir
|
|
|
|
mkdir $out/bin
|
|
cat <<EOF > $out/bin/whitebophir
|
|
#!${runtimeShell}
|
|
exec ${nodejs}/bin/node $out_whitebophir/server/server.js
|
|
EOF
|
|
chmod +x $out/bin/whitebophir
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Online collaborative whiteboard that is simple, free, easy to use and to deploy";
|
|
license = licenses.agpl3Plus;
|
|
homepage = "https://github.com/lovasoa/whitebophir";
|
|
maintainers = with maintainers; [ iblech ];
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in
|
|
combined
|