From c067f9fc8c851d274c78b45ae900be33a29e10e6 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 14 May 2025 22:13:36 +0200 Subject: [PATCH] ljkadslkjsdalkj --- overlays.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/overlays.nix b/overlays.nix index 76d4e4c..82492a2 100755 --- a/overlays.nix +++ b/overlays.nix @@ -65,7 +65,7 @@ let # TODO: mkDerivation.passthru.withGDB: add .withGDB which runs the full build with gdb # TODO: mkDerivation.passthru.withDebInfo: like overlay.withDebug but with cmakeBuildType = "RelWithDebInfo" mode - # usage: nix-build ./dev.nix -A .withDebug + # usage: nix-build . -A .withDebug overlays.withDebug = mkDerivationOverlay ( final: prev: prevStdenv: finalAttrs: prevAttrs: { passthru = { @@ -82,7 +82,7 @@ let } ); - # usage: nix-build ./dev.nix -A .srcOnly + # usage: nix-build . -A .srcOnly overlays.srcOnly = mkDerivationOverlay ( final: prev: prevStdenv: finalAttrs: prevAttrs: { passthru = { @@ -91,7 +91,7 @@ let } ); - # usage: nix-build ./dev.nix -A .src.invalidated + # usage: nix-build . -A .src.invalidated overlays.withInvalidateFetcherByDrvHash = mkDerivationOverlay ( final: prev: prevStdenv: finalAttrs: prevAttrs: { passthru = { @@ -102,7 +102,7 @@ let ); # https://github.com/NixOS/nixpkgs/pull/392938 - # usage: nix-build ./dev.nix -A .src.unpacked + # usage: nix-build . -A .src.unpacked overlays.withUnpacked = final: prev: { fetchurl = (lib.mirrorFunctionArgs prev.fetchurl) ( args: @@ -150,7 +150,7 @@ let ); }; - # usage: nix-build ./dev.nix -A .shellcheck + # usage: nix-build . -A .shellcheck overlays.withShellCheck = mkDerivationOverlay ( final: prev: prevStdenv: finalAttrs: prevAttrs: let @@ -207,8 +207,8 @@ let ); # TODO: this way of overriding does not work - # usage: nix-build ./dev.nix -A .withCuda - # usage: nix-build ./dev.nix -A .withRocm + # usage: nix-build . -A .withCuda + # usage: nix-build . -A .withRocm overlays.withCudaOrRocm = final: prev: { lib = prev.lib.extend ( finalLib: prevLib: { @@ -275,7 +275,7 @@ let ); }; - # usage: nix-build ./dev.nix -A .withCcache + # usage: nix-build . -A .withCcache overlays.withCcache = let ccacheConfig = '' @@ -353,8 +353,8 @@ let }) final prev); # very hacky, not guaranteed to work, but may save a lot of .whl rebuilds - # usage: nix-build ./dev.nix -A python3Packages..twostage - # usage: nix-build ./dev.nix -A python3Packages..twostage.first + # usage: nix-build . -A python3Packages..twostage + # usage: nix-build . -A python3Packages..twostage.first overlays.withTwostagePythonBuildPassthru = final: prev: { pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ (