11 src = fetchFromGitHub {
14 rev = "cb2f9f8b21e336165fc0a310d677fda75c8e8513";
15 hash = "sha256-XTZKFIzJ3xL8ae3zG8nsMhGWvpvRUAQ2b6q/Q1QvGd0=";
21 make DESTDIR="$out" PREFIX= install
28 description = "Small program to automate tasks specific to certain directories";
30 It works by executing scripts in directories when you enter and leave them.
31 This is done by overriding the shell builtins cd, pushd, and popd,
32 which is a manual action.
33 The user is required to add a snippet to their shell initialisation file like .bashrc or .profile.
35 Which commands are executed on directory entry and leave is done
36 in predefined locations with a .ondirrc file.
38 See man ondir for more information
40 homepage = "https://github.com/alecthomas/ondir/";
41 license = licenses.gpl2Only;
42 maintainers = [ maintainers.michaelCTS ];
43 mainProgram = "ondir";