12 src = fetchFromGitHub {
16 hash = "sha256-rFK1M15NcshVY2vtXcMWZhB9Rd/DRC8JyKE5u4wjh2I=";
19 vendorHash = "sha256-r1Kq6CYGNbxTTue3sb3CKMsWZJDzX2dKX7QHQ73nZ8g=";
21 nativeBuildInputs = [ installShellFiles ];
23 ldflags = [ "-s" "-w" "-X main.gVersion=r${version}" ];
25 # Force the use of the pure-go implementation of the os/user library.
26 # Relevant issue: https://github.com/gokcehan/lf/issues/191
27 tags = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "osusergo" ];
30 install -D --mode=444 lf.desktop $out/share/applications/lf.desktop
32 installShellCompletion etc/lf.{bash,zsh,fish}
36 description = "Terminal file manager written in Go and heavily inspired by ranger";
38 lf (as in "list files") is a terminal file manager written in Go. It is
39 heavily inspired by ranger with some missing and extra features. Some of
40 the missing features are deliberately omitted since it is better if they
41 are handled by external tools.
43 homepage = "https://godoc.org/github.com/gokcehan/lf";
44 changelog = "https://github.com/gokcehan/lf/releases/tag/r${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dotlambda ];