3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/web-apps/whitebophir/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
908 B
Nix
Raw Normal View History

2021-01-13 00:22:31 +00:00
{ stdenv
, pkgs
, lib
2022-10-02 15:12:32 +01:00
, nodejs-16_x
2021-01-13 00:22:31 +00:00
, runtimeShell
}:
let
2022-10-02 15:12:32 +01:00
nodejs = nodejs-16_x;
2021-01-13 00:22:31 +00:00
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";
2021-03-06 17:43:25 +00:00
license = licenses.agpl3Plus;
2021-01-13 00:22:31 +00:00
homepage = "https://github.com/lovasoa/whitebophir";
maintainers = with maintainers; [ iblech ];
platforms = platforms.unix;
};
};
in
combined