overlays.withInvalidateFetcherByDrvHash
This commit is contained in:
10
overlays.nix
10
overlays.nix
@@ -82,6 +82,16 @@ let
|
||||
}
|
||||
);
|
||||
|
||||
# usage: nix-build ./dev.nix -A <package>.src.invalidated
|
||||
overlays.withInvalidateFetcherByDrvHash = mkDerivationOverlay (
|
||||
final: prev: prevStdenv: finalAttrs: prevAttrs: {
|
||||
passthru = {
|
||||
# invalidated = prevStdenv.mkDerivation prevAttrs;
|
||||
invalidated = prev.invalidateFetcherByDrvHash prevStdenv.mkDerivation prevAttrs;
|
||||
} // prevAttrs.passthru or { };
|
||||
}
|
||||
);
|
||||
|
||||
# usage: nix-build ./dev.nix -A <package>.shellcheck
|
||||
overlays.withShellCheck = mkDerivationOverlay (
|
||||
final: prev: prevStdenv: finalAttrs: prevAttrs:
|
||||
|
||||
Reference in New Issue
Block a user