From 92a0d9f7da3c6c9a7fd2d36970e7ca3f38323e29 Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 19 May 2022 10:45:53 +0200 Subject: fix(3p/cgit): substitute newly supported compression tools This code is copied from the cgit derivation in nixpkgs, seems like we missed when these new compression methods were added. Change-Id: I2d4118785abc173c86ac92e3007cd7027a1e0496 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5637 Autosubmit: sterni Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/cgit/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix index 47c0de0d65..5f8e069a4e 100644 --- a/third_party/cgit/default.nix +++ b/third_party/cgit/default.nix @@ -1,7 +1,7 @@ { depot, lib, pkgs, ... }: let - inherit (pkgs) stdenv gzip bzip2 xz luajit zlib autoconf openssl pkgconfig; + inherit (pkgs) stdenv gzip bzip2 xz lzip zstd zlib openssl; in stdenv.mkDerivation rec { pname = "cgit-pink"; @@ -15,7 +15,9 @@ stdenv.mkDerivation rec { postPatch = '' sed -e 's|"gzip"|"${gzip}/bin/gzip"|' \ -e 's|"bzip2"|"${bzip2.bin}/bin/bzip2"|' \ + -e 's|"lzip"|"${lzip}/bin/lzip"|' \ -e 's|"xz"|"${xz.bin}/bin/xz"|' \ + -e 's|"zstd"|"${zstd}/bin/zstd"|' \ -i ui-snapshot.c ''; -- cgit 1.4.1