git.iko.soy/typeable/nixpkgs
on master help sign in
i3-gaps: Fix man pages and simplify

The .tar.gz from the github's archive does not contain man pages, only asciidoc versions of them. Because i3-gaps uses the same build process as i3, the man pages are not generated and the asciidoc versions are put in share/man/man1. This annoys mandb: mandb: warning: …/share/man/man1/i3.man.gz: ignoring bogus filename This commit changes the downloaded file to use github's release instead. The resulting .tar.bz2 file is much closer to the one downloaded for i3 which means the build process can still be the same and we get proper man pages at the end. Because of the previous change, the I3_VERSION file is now part of the downloaded source which means Nix doesn't have to create it anymore.

commit3793f44459834ac401666c606b7c0f6832bc59bd authorDamien Cassou <damien@cassou.me> dateWed 29 Apr 2020, 08:58 (7 years ago) parentdcdbe2c
1 file changed+2−7
pkgs/applications/window-managers/i3/gaps.nix+2−7
pkgs/applications/window-managers/i3/gaps.nix+2−7
@@ -4,19 +4,14 @@ i3.overrideAttrs (oldAttrs : rec {
44
55 name = "i3-gaps-${version}";
66 version = "4.18.1";
7− releaseDate = "2019-01-27";
87
98 src = fetchurl {
10− url = "https://github.com/Airblader/i3/archive/${version}.tar.gz";
11− sha256 = "07gk5m90v0ih7c18vcwx7p7innsccd09j2vkr99a33wk71xrww1z";
9+ url = "https://github.com/Airblader/i3/releases/download/${version}/i3-${version}.tar.bz2";
10+ sha256 = "1cxwsrdzp18r5hj0ymg9fbzp1mhkj4m9h6i0b9cdg79cjbacba9k";
1211 };
1312
1413 nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ autoreconfHook ];
1514
16− postUnpack = ''
17− echo -n "${version} (${releaseDate})" > ./i3-${version}/I3_VERSION
18− '';
19−
2015 # fatal error: GENERATED_config_enums.h: No such file or directory
2116 enableParallelBuilding = false;
2217