Unverified Commit 2b0c6176 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

make-initrd: drop unused `toValidStoreName` local (#482823)

parents 14686333 26acdb10
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -81,12 +81,6 @@ in
    _compressorMeta.ubootName
      or (throw "Unrecognised compressor ${_compressorName}, please specify uInitrdCompression"),
}:
let
  # !!! Move this into a public lib function, it is probably useful for others
  toValidStoreName =
    x: with builtins; lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x));

in
stdenvNoCC.mkDerivation (
  rec {
    inherit