@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, lua }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "z-lua";
5+ version = "1.7.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "skywind3000";
9+ repo = "z.lua";
10+ rev = "v${version}";
11+ sha256 = "1f8iafv81xsypa78prazq6k2xz8az09kjhl97vn330drxkcpj7i7";
12+ };
13+
14+ dontBuild = true;
15+
16+ buildInputs = [ lua ];
17+
18+ installPhase = ''
19+ install -Dm755 z.lua $out/bin/z
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ homepage = https://github.com/skywind3000/z.lua;
24+ description = "A new cd command that helps you navigate faster by learning your habits";
25+ license = licenses.mit;
26+ maintainers = [ maintainers.marsam ];
27+ };
28+}