Skip to content

Instantly share code, notes, and snippets.

@kalbasit
Last active July 6, 2018 19:00
Show Gist options
  • Save kalbasit/3102a2b8fc3f91a81394e430dd3d95d8 to your computer and use it in GitHub Desktop.
Save kalbasit/3102a2b8fc3f91a81394e430dd3d95d8 to your computer and use it in GitHub Desktop.
{stdenv, less}:
stdenv.mkDerivation rec {
name = "less-config";
phases = [ "buildPhase" "installPhase" ];
src = ./.;
buildInputs = [ less ];
buildPhase = ''
lesskey -o $src/less $src/lesskey
'';
installPhase = ''
install -dm 755 $out/userHome
cp -dr --no-preserve='ownership' $src/less $out/userHome/.less
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment