mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
Merge pull request #36265 from Ekleog/configurable-riot
riot-web: make package configurable
This commit is contained in:
commit
4ee9d05086
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
name= "riot-web-${version}";
|
name= "riot-web-${version}";
|
||||||
version = "0.13.5";
|
version = "0.13.5";
|
||||||
@ -12,6 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/
|
mkdir -p $out/
|
||||||
cp -R . $out/
|
cp -R . $out/
|
||||||
|
${lib.optionalString (conf != null) "ln -s ${configFile} $out/config.json"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1332,7 +1332,9 @@ with pkgs;
|
|||||||
|
|
||||||
ring-daemon = callPackage ../applications/networking/instant-messengers/ring-daemon { };
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
rsbep = callPackage ../tools/backup/rsbep { };
|
rsbep = callPackage ../tools/backup/rsbep { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user