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