inspircd: 4.7.0 -> 4.8.0

https://docs.inspircd.org/4/change-log/#inspircd-480

- The build system now allows using the system provided versions of
utf8cpp and http-parser which is great for us.

- Pass --disable-ownership which means we will no longer have to know
the user to which will run inspircd at build time (we didn't know that
before, so we had to pass --uid 0 and --gid 0 (which always exist),
but having .service files which hardcode User=root isn't great even
though the user could configure inspircd to use setuid(2)).

+17 -5
+17 -5
pkgs/by-name/in/inspircd/package.nix
··· 70 70 nixosTests, 71 71 perl, 72 72 pkg-config, 73 + http-parser, 74 + utf8cpp, 73 75 libargon2, 74 76 openldap, 75 77 libpq, ··· 148 150 149 151 stdenv.mkDerivation rec { 150 152 pname = "inspircd"; 151 - version = "4.7.0"; 153 + version = "4.8.0"; 152 154 153 155 src = fetchFromGitHub { 154 156 owner = "inspircd"; 155 157 repo = "inspircd"; 156 158 rev = "v${version}"; 157 - sha256 = "sha256-/LiniV5moKGX7K6Hfzq1mxEBZ+sqnScQxT0AApiBPaA="; 159 + sha256 = "sha256-fMfsNbkp9M8KiuhwOEFmPjowZ4JLP4IpX6LRO9aLHzY="; 158 160 }; 159 161 160 162 outputs = [ ··· 172 174 ++ lib.optionals (lib.elem "pgsql" extraModules) [ 173 175 libpq.pg_config 174 176 ]; 175 - buildInputs = extraInputs; 177 + 178 + # Disable use of the vendored versions of these libraries 179 + env = { 180 + SYSTEM_HTTP_PARSER = "1"; 181 + SYSTEM_UTFCPP = "1"; 182 + }; 183 + 184 + buildInputs = [ 185 + http-parser 186 + utf8cpp 187 + ] 188 + ++ extraInputs; 176 189 177 190 configurePhase = '' 178 191 runHook preConfigure ··· 189 202 ./configure \ 190 203 --disable-auto-extras \ 191 204 --distribution-label nixpkgs${version} \ 192 - --uid 0 \ 193 - --gid 0 \ 205 + --disable-ownership \ 194 206 --binary-dir ${placeholder "bin"}/bin \ 195 207 --config-dir /etc/inspircd \ 196 208 --data-dir ${placeholder "lib"}/lib/inspircd \