8 removeKnownVulnerabilities =
10 pkg.overrideAttrs (old: {
11 meta = (old.meta or { }) // {
12 knownVulnerabilities = [ ];
15 # We are removing `meta.knownVulnerabilities` from `python27`,
16 # and setting it in `resholve` itself.
17 python27' = (removeKnownVulnerabilities pkgsBuildHost.python27).override {
19 pkgsBuildHost = pkgsBuildHost // {
22 # strip down that python version as much as possible
29 rebuildBytecode = false;
35 enableOptimizations = false;
37 callPackage = lib.callPackageWith (pkgsBuildHost // { python27 = python27'; });
38 source = callPackage ./source.nix { };
39 deps = callPackage ./deps.nix { };
42 # not exposed in all-packages
43 resholveBuildTimeOnly = removeKnownVulnerabilities resholve;
46 callPackage ./resholve.nix {
47 inherit (source) rSrc version;
48 inherit (deps.oil) oildev;
49 inherit (deps) configargparse;
50 inherit resholve-utils;
52 resholve = resholveBuildTimeOnly;
55 # funcs to validate and phrase invocations of resholve
56 # and use those invocations to build packages
57 resholve-utils = callPackage ./resholve-utils.nix {
58 # we can still use resholve-utils without triggering a security warn
59 # this is safe since we will only use `resholve` at build time
60 resholve = resholveBuildTimeOnly;