From ab7e752b4a4fb48cdf5135adc54fc4dd74901f2f Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 1 Apr 2021 17:06:16 +0200 Subject: chore(third_party/cgit): use lib instead of stdenv.lib Getting `lib` from `stdenv.lib` is deprecated, and throws warnings. Change-Id: Ic925818c1b5a67d15d6d40ad784554328cd603e0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2751 Reviewed-by: lukegb Reviewed-by: glittershark Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/cgit/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'third_party/cgit') diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix index 3e58816fc7df..253d3022f086 100644 --- a/third_party/cgit/default.nix +++ b/third_party/cgit/default.nix @@ -1,8 +1,9 @@ { depot, ... }: let - inherit (depot.third_party) stdenv gzip bzip2 xz luajit zlib autoconf openssl pkgconfig; -in stdenv.mkDerivation rec { + inherit (depot.third_party) lib stdenv gzip bzip2 xz luajit zlib autoconf openssl pkgconfig; +in +stdenv.mkDerivation rec { pname = "cgit"; version = "master"; src = ./.; @@ -30,8 +31,8 @@ in stdenv.mkDerivation rec { homepage = https://git.zx2c4.com/cgit/about/; repositories.git = git://git.zx2c4.com/cgit; description = "Web frontend for git repositories"; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; - maintainers = with stdenv.lib.maintainers; [ bjornfor ]; + license = lib.licenses.gpl2; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ bjornfor ]; }; } -- cgit 1.4.1