From 9500a7bff7e3f83ab03524c9915a3d3658f516a7 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Sun, 26 Apr 2026 14:07:02 -0400 Subject: [PATCH] stdenv.mkDerivation: remove duplicate assertions --- pkgs/stdenv/generic/make-derivation.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index ffed9e197ff4..79f49c5eedb4 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -374,17 +374,6 @@ let ... }@attrs: - - # Policy on acceptable hash types in nixpkgs - assert - attrs ? outputHash - -> ( - let - algo = attrs.outputHashAlgo or (head (splitString "-" attrs.outputHash)); - in - if algo == "md5" then throw "Rejected insecure ${algo} hash '${attrs.outputHash}'" else true - ); - let # TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when # no package has `doCheck = true`.