Merge pull request #31730 from gnidorah/rambox
rambox: allow user to use other auth0 credentials
This commit is contained in:
commit
c0d2ee13be
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchNodeModules, nodejs-8_x, ruby, sencha }:
|
{ stdenv, fetchFromGitHub, fetchNodeModules, nodejs-8_x, ruby, sencha, auth0ClientID, auth0Domain }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "rambox-bare-${version}";
|
name = "rambox-bare-${version}";
|
||||||
@ -22,12 +22,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./hide-check-for-updates.patch ./isDev.patch ];
|
patches = [ ./hide-check-for-updates.patch ./isDev.patch ];
|
||||||
|
|
||||||
# These credentials are only for this derivation. If you want to get credentials
|
|
||||||
# for another distribution, go to https://auth0.com. If you want to reuse the same
|
|
||||||
# domain, drop a line at yegortimoshenko@gmail.com!
|
|
||||||
auth0ClientID = "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU";
|
|
||||||
auth0Domain = "nixpkgs.auth0.com";
|
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
echo 'var auth0Cfg = { clientID: "${auth0ClientID}", domain: "${auth0Domain}" };' > env.js
|
echo 'var auth0Cfg = { clientID: "${auth0ClientID}", domain: "${auth0Domain}" };' > env.js
|
||||||
ln -s ${node_modules} node_modules
|
ln -s ${node_modules} node_modules
|
||||||
|
@ -1,10 +1,17 @@
|
|||||||
{ stdenv, newScope, makeWrapper, electron, xdg_utils, makeDesktopItem }:
|
{ stdenv, newScope, makeWrapper, electron, xdg_utils, makeDesktopItem
|
||||||
|
# These credentials are only for this derivation. If you want to get credentials
|
||||||
|
# for another distribution, go to https://auth0.com. If you want to reuse the same
|
||||||
|
# domain, drop a line at yegortimoshenko@gmail.com!
|
||||||
|
, auth0ClientID ? "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU"
|
||||||
|
, auth0Domain ? "nixpkgs.auth0.com" }:
|
||||||
|
|
||||||
let
|
let
|
||||||
callPackage = newScope self;
|
callPackage = newScope self;
|
||||||
self = {
|
self = {
|
||||||
fetchNodeModules = callPackage ./fetchNodeModules.nix {};
|
fetchNodeModules = callPackage ./fetchNodeModules.nix {};
|
||||||
rambox-bare = callPackage ./bare.nix {};
|
rambox-bare = callPackage ./bare.nix {
|
||||||
|
inherit auth0ClientID auth0Domain;
|
||||||
|
};
|
||||||
sencha = callPackage ./sencha {};
|
sencha = callPackage ./sencha {};
|
||||||
};
|
};
|
||||||
desktopItem = makeDesktopItem rec {
|
desktopItem = makeDesktopItem rec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user