diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-03-04 13:54:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-04 13:54:19 +0000 |
commit | 4ee9d0508653de1d626c1ee81374acdd422fc37d (patch) | |
tree | 8f982418d9315d856aea9366bd86e5e6b9c29453 /pkgs/applications/networking/instant-messengers | |
parent | a381e988babab6f22b35601dcddf91d295f7550d (diff) | |
parent | d8f8253d3f040982e7948c3ad98efbabf5b771a0 (diff) | |
download | nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar.gz nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar.bz2 nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar.lz nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar.xz nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.tar.zst nixpkgs-4ee9d0508653de1d626c1ee81374acdd422fc37d.zip |
Merge pull request #36265 from Ekleog/configurable-riot
riot-web: make package configurable
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
-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 ea887454815..b47280d3b15 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 = { |