Last active
July 6, 2018 19:00
-
-
Save kalbasit/3102a2b8fc3f91a81394e430dd3d95d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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