1 { lib, fetchFromGitHub }:
5 outputs = [ "out" "xxd" ];
7 src = fetchFromGitHub {
11 hash = "sha256-LtEEMpdWXA6qyjAIjgsZoc4hNXXG2ZXxCsbWKC5aEPI=";
14 enableParallelBuilding = true;
15 enableParallelInstalling = false;
17 hardeningDisable = [ "fortify" ];
19 # Use man from $PATH; escape sequences are still problematic.
21 substituteInPlace runtime/ftplugin/man.vim \
22 --replace "/usr/bin/man " "man "
25 # man page moving is done in postFixup instead of postInstall otherwise fixupPhase moves it right back where it was
27 moveToOutput bin/xxd "$xxd"
28 moveToOutput share/man/man1/xxd.1.gz "$xxd"
29 for manFile in $out/share/man/*/man1/xxd.1*; do
30 # moveToOutput does not take full paths or wildcards...
31 moveToOutput "share/man/$(basename "$(dirname "$(dirname "$manFile")")")/man1/xxd.1.gz" "$xxd"
36 description = "Most popular clone of the VI editor";
37 homepage = "http://www.vim.org";
38 license = licenses.vim;
39 maintainers = with maintainers; [ das_j equirosa philiptaron ];
40 platforms = platforms.unix;
42 outputsToInstall = [ "out" "xxd" ];