mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 01:46:30 +00:00
9e9c6de50c
It will be EOL within the support period of 19.09
57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{ stdenv, fetchFromGitHub, fetchNodeModules, nodejs-10_x, ruby, sencha
|
|
, auth0ClientID, auth0Domain }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rambox-bare-${version}";
|
|
version = "0.6.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ramboxapp";
|
|
repo = "community-edition";
|
|
rev = version;
|
|
sha256 = "1h44srl2gzkhjaazpwz1pwy4dp5x776fc685kahlvjlsfls0fvy9";
|
|
};
|
|
|
|
nativeBuildInputs = [ nodejs-10_x ruby sencha ];
|
|
|
|
node_modules = fetchNodeModules {
|
|
inherit src;
|
|
|
|
nodejs = nodejs-10_x;
|
|
sha256 = "0qsgr8cq81yismal5sqr02skakqpynwwzk5s98dr5bg91y361fgy";
|
|
};
|
|
|
|
patches = [ ./isDev.patch ];
|
|
|
|
configurePhase = ''
|
|
echo 'var auth0Cfg = { clientID: "${auth0ClientID}", domain: "${auth0Domain}" };' > env.js
|
|
ln -s ${node_modules} node_modules
|
|
'';
|
|
|
|
buildPhase = ''
|
|
mkdir ../rambox-build
|
|
npm run sencha:compile:build
|
|
'';
|
|
|
|
installPhase = ''
|
|
mv ../rambox-build/ $out
|
|
|
|
# https://github.com/saenzramiro/rambox/issues/1281
|
|
echo '{"name": "rambox", "version": "${version}", "main": "electron/main.js"}' > $out/package.json
|
|
|
|
# https://github.com/saenzramiro/rambox/issues/1282
|
|
cp --parents ext/packages/ext-locale/build/ext-locale-*.js $out
|
|
|
|
# Symbolic link causes `Uncaught Error: Cannot find module 'immutable'`
|
|
cp -r ${node_modules} $out/node_modules
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Messaging and emailing app that combines common web applications into one";
|
|
homepage = http://rambox.pro;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|