about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-04-01T15·06+0200
committerflokli <flokli@flokli.de>2021-04-01T17·30+0000
commitab7e752b4a4fb48cdf5135adc54fc4dd74901f2f (patch)
treef13b3f1539ccd98c8917e6019888852e0059b54c /third_party
parent387b8c83bffb864a5910de9be34064d986f0afa5 (diff)
chore(third_party/cgit): use lib instead of stdenv.lib r/2390
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 <lukegb@tvl.fyi>
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party')
-rw-r--r--third_party/cgit/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/third_party/cgit/default.nix b/third_party/cgit/default.nix
index 3e58816fc7..253d3022f0 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 ];
   };
 }