diff --git a/doc/redirects.json b/doc/redirects.json index 8b66c806017b..18c7f3dda7fa 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -1569,6 +1569,9 @@ "lib.sourceTypes.binaryBytecode": [ "index.html#lib.sourceTypes.binaryBytecode" ], + "lib.sourceTypes.obfuscatedCode": [ + "index.html#lib.sourceTypes.obfuscatedCode" + ], "chap-passthru": [ "index.html#chap-passthru" ], diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md index fc53dbe37baf..1e1e190b3eda 100644 --- a/doc/stdenv/meta.chapter.md +++ b/doc/stdenv/meta.chapter.md @@ -258,6 +258,10 @@ Code to be executed on a peripheral device or embedded controller, built by a th Code to run on a VM interpreter or JIT compiled into bytecode by a third party. This includes packages which download Java `.jar` files from another source. +### `lib.sourceTypes.obfuscatedCode` {#lib.sourceTypes.obfuscatedCode} + +Code which is intentionally obfuscated by a third party, for example by using a code obfuscator or by being distributed in an obfuscated form. + ## Software identifiers {#sec-meta-identifiers} Package's `meta.identifiers` attribute specifies information about software identifiers associated with this package. Software identifiers are used, for example: diff --git a/lib/source-types.nix b/lib/source-types.nix index b055e5d1b656..c9b89a813678 100644 --- a/lib/source-types.nix +++ b/lib/source-types.nix @@ -17,4 +17,6 @@ lib.mapAttrs (tname: tset: defaultSourceType tname // tset) { binaryBytecode = { }; binaryFirmware = { }; + + obfuscatedCode = { }; }