diff options
author | Léo Gaspard <leo@gaspard.io> | 2018-03-03 22:24:24 +0100 |
---|---|---|
committer | Léo Gaspard <leo@gaspard.io> | 2018-03-04 14:51:09 +0100 |
commit | d8f8253d3f040982e7948c3ad98efbabf5b771a0 (patch) | |
tree | 2da526f52dfffbda3966b638ebc90f0a7a28c3a4 /pkgs/applications/networking/instant-messengers/riot | |
parent | 831ef4756e372bfff77332713ae319daa3a42742 (diff) | |
download | nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar.gz nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar.bz2 nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar.lz nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar.xz nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.tar.zst nixlib-d8f8253d3f040982e7948c3ad98efbabf5b771a0.zip |
riot-web: make package configurable
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/riot')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/riot/riot-web.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/riot/riot-web.nix b/pkgs/applications/networking/instant-messengers/riot/riot-web.nix index ea8874548155..b47280d3b156 100644 --- a/pkgs/applications/networking/instant-messengers/riot/riot-web.nix +++ b/pkgs/applications/networking/instant-messengers/riot/riot-web.nix @@ -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 = { |