1 { lib, stdenv, fetchFromGitHub, runtimeShell }:
5 version = "unstable-2017-12-16";
7 src = fetchFromGitHub {
10 rev = "2c8cfbcea8e7286649840d7ec98d7e9d5e1d45a0";
11 sha256 = "004svkfzhc3ab6q2qvwzgj36wvicg5bs8d2gcibx6adq042di7zj";
17 mkdir -p $out/{bin,share}
18 cp -R $src $out/share/zsh-autoenv
20 cat <<SCRIPT > $out/bin/zsh-autoenv-share
22 # Run this script to find the zsh-autoenv shared folder where all the shell
23 # integration scripts are living.
24 echo $out/share/zsh-autoenv
26 chmod +x $out/bin/zsh-autoenv-share
30 description = "Automatically sources whitelisted .autoenv.zsh files";
32 zsh-autoenv automatically sources (known/whitelisted)
33 .autoenv.zsh files, typically used in project root directories.
34 It handles "enter" and "leave" events, nesting, and stashing of
35 variables (overwriting and restoring).
37 homepage = "https://github.com/Tarrasch/zsh-autoenv";
38 mainProgram = "zsh-autoenv-share";
39 platforms = lib.platforms.all;