diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /overlays/python-packages/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'overlays/python-packages/default.nix')
-rw-r--r-- | overlays/python-packages/default.nix | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/overlays/python-packages/default.nix b/overlays/python-packages/default.nix deleted file mode 100644 index 601eed1..0000000 --- a/overlays/python-packages/default.nix +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | let | ||
2 | fromMyPythonPackages = name: self: super: { | ||
3 | pythonOverrides = self.buildPythonOverrides (pyself: pysuper: { | ||
4 | "${name}" = self."${pyself.python.pname}PackagesPlus"."${name}"; | ||
5 | }) super.pythonOverrides; | ||
6 | }; | ||
7 | in | ||
8 | { | ||
9 | # https://github.com/NixOS/nixpkgs/issues/44426 | ||
10 | # needs to come before all other in alphabetical order (or make use of | ||
11 | # lib.mkBefore) | ||
12 | __pythonOverlayFix = self: super: let | ||
13 | pyNames = [ "python3" "python36" "python37" "python38" ]; | ||
14 | overriddenPython = name: [ | ||
15 | { inherit name; value = super.${name}.override { packageOverrides = self.pythonOverrides; }; } | ||
16 | { name = "${name}Packages"; value = self.recurseIntoAttrs self.${name}.pkgs; } | ||
17 | ]; | ||
18 | overriddenPythons = builtins.concatLists (map overriddenPython pyNames); | ||
19 | in { | ||
20 | pythonOverrides = pyself: pysuper: {}; | ||
21 | buildPythonOverrides = newOverrides: currentOverrides: super.lib.composeExtensions newOverrides currentOverrides; | ||
22 | } // super.lib.attrsets.listToAttrs overriddenPythons; | ||
23 | |||
24 | |||
25 | blivet3 = fromMyPythonPackages "blivet3"; | ||
26 | buildbot = import ./buildbot.nix; | ||
27 | wokkel = fromMyPythonPackages "wokkel"; | ||
28 | pymilter = fromMyPythonPackages "pymilter"; | ||
29 | } | ||