|
8 | 8 | system ? builtins.currentSystem, |
9 | 9 | }: let |
10 | 10 | fix' = __unfix__: let x = __unfix__ x // {inherit __unfix__;}; in x; |
11 | | - |
12 | | - args = fix' (self: { |
| 11 | + sources = import ../nix/sources.nix; |
| 12 | + args = fix' (self: let |
13 | 13 | __nixpkgs__ = import sources.nixpkgs {inherit system;}; |
| 14 | + in { |
| 15 | + inherit __nixpkgs__; |
14 | 16 | __nixpkgsSrc__ = sources.nixpkgs; |
15 | 17 | __shellCommands__ = ./shell-commands/template.sh; |
16 | 18 | __shellOptions__ = ./shell-options/template.sh; |
|
19 | 21 | __toModuleOutputs__ = import ./to-module-outputs/default.nix self; |
20 | 22 | asContent = import ./as-content/default.nix; |
21 | 23 | attrsGet = import ./attrs-get/default.nix; |
22 | | - attrsMapToList = self.__nixpkgs__.lib.mapAttrsToList; |
23 | | - attrsMerge = builtins.foldl' self.__nixpkgs__.lib.recursiveUpdate {}; |
24 | | - attrsOptional = self.__nixpkgs__.lib.optionalAttrs; |
| 24 | + attrsMapToList = __nixpkgs__.lib.mapAttrsToList; |
| 25 | + attrsMerge = builtins.foldl' __nixpkgs__.lib.recursiveUpdate {}; |
| 26 | + attrsOptional = __nixpkgs__.lib.optionalAttrs; |
25 | 27 | calculateCvss3 = import ./calculate-cvss-3/default.nix self; |
26 | 28 | calculateScorecard = import ./calculate-scorecard/default.nix self; |
27 | 29 | chunks = import ./chunks/default.nix self; |
28 | 30 | computeOnAwsBatch = import ./compute-on-aws-batch/default.nix self; |
29 | 31 | deployContainerImage = import ./deploy-container-image/default.nix self; |
30 | 32 | deployNomad = import ./deploy-nomad/default.nix self; |
31 | 33 | deployTerraform = import ./deploy-terraform/default.nix self; |
32 | | - inherit (self.__nixpkgs__.lib.strings) escapeShellArg; |
33 | | - inherit (self.__nixpkgs__.lib.strings) escapeShellArgs; |
34 | | - inherit (self.__nixpkgs__.lib) fakeSha256; |
| 34 | + inherit (__nixpkgs__.lib.strings) escapeShellArg; |
| 35 | + inherit (__nixpkgs__.lib.strings) escapeShellArgs; |
| 36 | + inherit (__nixpkgs__.lib) fakeSha256; |
35 | 37 | fetchArchive = import ./fetch-archive/default.nix self; |
36 | 38 | fetchGithub = import ./fetch-github/default.nix self; |
37 | 39 | fetchGitlab = import ./fetch-gitlab/default.nix self; |
38 | 40 | fetchNixpkgs = import ./fetch-nixpkgs/default.nix self; |
39 | 41 | fetchRubyGem = import ./fetch-rubygem/default.nix self; |
40 | 42 | fetchUrl = import ./fetch-url/default.nix self; |
41 | | - inherit (self.__nixpkgs__.lib) filterAttrs; |
42 | | - inherit (self.__nixpkgs__.lib.lists) flatten; |
| 43 | + inherit (__nixpkgs__.lib) filterAttrs; |
| 44 | + inherit (__nixpkgs__.lib.lists) flatten; |
43 | 45 | formatBash = import ./format-bash/default.nix self; |
44 | 46 | formatNix = import ./format-nix/default.nix self; |
45 | 47 | formatPython = import ./format-python/default.nix self; |
|
51 | 53 | fromYaml = import ./from-yaml/default.nix self; |
52 | 54 | fromYamlFile = path: self.fromYaml (builtins.readFile path); |
53 | 55 | gitlabCi = import ./gitlab-ci/default.nix; |
54 | | - inherit (self.__nixpkgs__.lib.strings) hasPrefix; |
55 | | - inherit (self.__nixpkgs__.lib.strings) hasSuffix; |
56 | | - inherit (self.__nixpkgs__.stdenv) isDarwin; |
57 | | - inherit (self.__nixpkgs__.stdenv) isLinux; |
| 56 | + inherit (__nixpkgs__.lib.strings) hasPrefix; |
| 57 | + inherit (__nixpkgs__.lib.strings) hasSuffix; |
| 58 | + inherit (__nixpkgs__.stdenv) isDarwin; |
| 59 | + inherit (__nixpkgs__.stdenv) isLinux; |
58 | 60 | libGit = import ./lib-git/default.nix self; |
59 | | - listOptional = self.__nixpkgs__.lib.lists.optional; |
| 61 | + listOptional = __nixpkgs__.lib.lists.optional; |
60 | 62 | lintClojure = import ./lint-clojure/default.nix self; |
61 | 63 | lintGitCommitMsg = import ./lint-git-commit-msg/default.nix self; |
62 | 64 | lintGitMailMap = import ./lint-git-mailmap/default.nix self; |
|
67 | 69 | lintTerraform = import ./lint-terraform/default.nix self; |
68 | 70 | lintWithAjv = import ./lint-with-ajv/default.nix self; |
69 | 71 | lintWithLizard = import ./lint-with-lizard/default.nix self; |
70 | | - inherit (self.__nixpkgs__.lib.filesystem) listFilesRecursive; |
| 72 | + inherit (__nixpkgs__.lib.filesystem) listFilesRecursive; |
71 | 73 | makeContainerImage = import ./make-container-image/default.nix self; |
72 | 74 | makeDerivation = import ./make-derivation/default.nix self; |
73 | 75 | makeDerivationParallel = import ./make-derivation-parallel/default.nix self; |
|
79 | 81 | makeNodeJsVersion = import ./make-node-js-version/default.nix self; |
80 | 82 | makeNomadEnvironment = import ./make-nomad-environment/default.nix self; |
81 | 83 | makePythonPypiEnvironment = import ./make-python-pypi-environment/default.nix self; |
| 84 | + makePythonPyprojectPackage = import ./make-python-pyproject-package/default.nix; |
82 | 85 | makePythonVersion = import ./make-python-version/default.nix self; |
83 | 86 | makeRubyGemsEnvironment = import ./make-ruby-gems-environment/default.nix self; |
84 | 87 | makeRubyGemsInstall = import ./make-ruby-gems-install/default.nix self; |
|
99 | 102 | makeWorkspaceForTerraformFromEnv = import ./make-workspace-for-terraform-from-env/default.nix self; |
100 | 103 | managePorts = import ./manage-ports/default.nix self; |
101 | 104 | patchShebangs = import ./patch-shebangs/default.nix self; |
102 | | - inherit (self.__nixpkgs__.lib) removePrefix; |
| 105 | + pythonOverrideUtils = import ./python-override-utils/default.nix; |
| 106 | + inherit (__nixpkgs__.lib) removePrefix; |
103 | 107 | secureKubernetesWithRbacPolice = import ./secure-kubernetes-with-rbac-police/default.nix self; |
104 | 108 | securePythonWithBandit = import ./secure-python-with-bandit/default.nix self; |
105 | 109 | sortAscii = builtins.sort (a: b: a < b); |
106 | | - sortAsciiCaseless = builtins.sort (a: b: self.__nixpkgs__.lib.toLower a < self.__nixpkgs__.lib.toLower b); |
| 110 | + sortAsciiCaseless = builtins.sort (a: b: __nixpkgs__.lib.toLower a < __nixpkgs__.lib.toLower b); |
107 | 111 | stringCapitalize = import ./string-capitalize/default.nix self; |
108 | 112 | sublist = import ./sublist/default.nix self; |
109 | 113 | taintTerraform = import ./taint-terraform/default.nix self; |
110 | 114 | testLicense = import ./test-license/default.nix self; |
111 | 115 | testTerraform = import ./test-terraform/default.nix self; |
112 | 116 | testPullRequest = import ./test-pull-request/default.nix self; |
113 | 117 | testPython = import ./test-python/default.nix self; |
114 | | - toDerivationName = self.__nixpkgs__.lib.strings.sanitizeDerivationName; |
| 118 | + toDerivationName = __nixpkgs__.lib.strings.sanitizeDerivationName; |
115 | 119 | toBashArray = import ./to-bash-array/default.nix self; |
116 | 120 | toBashMap = import ./to-bash-map/default.nix self; |
117 | 121 | toFileJson = import ./to-file-json/default.nix self; |
|
120 | 124 | toFileJsonFromFileYaml = import ./to-file-json-from-file-yaml/default.nix self; |
121 | 125 | toFileLst = import ./to-file-lst/default.nix; |
122 | 126 | }); |
123 | | - |
124 | | - sources = import ../nix/sources.nix; |
125 | 127 | in |
126 | 128 | assert args.isDarwin || args.isLinux; args |
0 commit comments