mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
riot-web: make package configurable
This commit is contained in:
parent
831ef4756e
commit
d8f8253d3f
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl, fetchpatch }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, writeText, conf ? null }:
|
||||
|
||||
let configFile = writeText "riot-config.json" conf; in
|
||||
stdenv.mkDerivation rec {
|
||||
name= "riot-web-${version}";
|
||||
version = "0.13.5";
|
||||
|
@ -12,6 +13,7 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
mkdir -p $out/
|
||||
cp -R . $out/
|
||||
${lib.optionalString (conf != null) "ln -s ${configFile} $out/config.json"}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -1321,7 +1321,9 @@ with pkgs;
|
|||
|
||||
ring-daemon = callPackage ../applications/networking/instant-messengers/ring-daemon { };
|
||||
|
||||
riot-web = callPackage ../applications/networking/instant-messengers/riot/riot-web.nix { };
|
||||
riot-web = callPackage ../applications/networking/instant-messengers/riot/riot-web.nix {
|
||||
conf = config.riot-web.conf or null;
|
||||
};
|
||||
|
||||
rsyslog = callPackage ../tools/system/rsyslog {
|
||||
hadoop = null; # Currently Broken
|
||||
|
|
Loading…
Reference in a new issue