summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/lseek/default.nix23
1 files changed, 13 insertions, 10 deletions
diff --git a/tools/lseek/default.nix b/tools/lseek/default.nix
index 735decd..8c9c7a1 100644
--- a/tools/lseek/default.nix
+++ b/tools/lseek/default.nix
@@ -5,7 +5,7 @@ import ../../lib/eval-config.nix ({ config, src, ... }: config.pkgs.pkgsStatic.c
 
 { lib, stdenv, clang-tools }:
 
-lib.fix (self: stdenv.mkDerivation {
+stdenv.mkDerivation (finalAttrs: {
   name = "lseek";
 
   inherit src;
@@ -16,15 +16,18 @@ lib.fix (self: stdenv.mkDerivation {
   enableParallelBuilding = true;
 
   passthru.tests = {
-    clang-tidy = self.overrideAttrs ({ nativeBuildInputs ? [], ... }: {
-      nativeBuildInputs = nativeBuildInputs ++ [ clang-tools ];
-
-      buildPhase = ''
-        clang-tidy --warnings-as-errors='*' lseek.c --
-        touch $out
-        exit 0
-      '';
-    });
+    clang-tidy = finalAttrs.finalPackage.overrideAttrs (
+      { nativeBuildInputs ? [], ... }:
+      {
+        nativeBuildInputs = nativeBuildInputs ++ [ clang-tools ];
+  
+        buildPhase = ''
+          clang-tidy --warnings-as-errors='*' lseek.c --
+          touch $out
+          exit 0
+        '';
+      }
+    );
   };
 
   meta = with lib; {