Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 4669e9aad238
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 53611a9b6c30
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 9, 2018

  1. 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";
        };
    ivanbrennan committed Apr 9, 2018
    1
    Copy the full SHA
    6e4096d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #38629 from ivanbrennan/less-configFile

    nixos/less: add configFile option
    Mic92 committed Apr 9, 2018
    Copy the full SHA
    53611a9 View commit details
    Browse the repository at this point in the history