summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpserver
diff options
context:
space:
mode:
authorivanbrennan <ivan.brennan@gmail.com>2018-04-08 20:30:27 -0400
committerivanbrennan <ivan.brennan@gmail.com>2018-04-08 22:37:35 -0400
commit6e4096d792fb54651cb6f705b27efd8f64227fa7 (patch)
tree8021d400be2ef3f84445237e5138f4b50d6f765f /pkgs/development/python-modules/httpserver
parent2b6bae5699450e1cf764e02fd70f75822d3d8079 (diff)
nixos/less: add configFile option
Expose the path to a lesskey file as a module option. This makes it possible to maintain a single lesskey file, used for both NixOS and non-nix systems. An example of how this can be done follows. 1. Write a derivation that fetches lesskey from a known location: { stdenv, fetchgit }: stdenv.mkDerivation { name = "foo"; src = fetchgit { .. }; phases = [ "unpackPhase" "installPhase" ]; installPhase = "mkdir -p $out && cp $src/lesskey $out/lesskey"; } 2. Set programs.less.configFile to the corresponding path: programs.less = { enable = true; configFile = "${pkgs.foo}/lesskey"; };
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions