This repository was archived by the owner on Oct 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-13
lines changed Expand file tree Collapse file tree 1 file changed +32
-13
lines changed Original file line number Diff line number Diff line change 11{ pkgs , python } :
2+ with pkgs . lib ;
3+ let
4+ specificOverrides =
5+ self : super : {
26
3- self : super : {
7+ "cryptography" = python . overrideDerivation super . "cryptography" ( old : {
8+ buildInputs = old . buildInputs
9+ ++ optional
10+ pkgs . stdenv . isDarwin
11+ pkgs . darwin . apple_sdk . frameworks . Security ;
12+ } ) ;
413
5- "cryptography" = python . overrideDerivation super . "cryptography" ( old : {
6- buildInputs = old . buildInputs
7- ++ pkgs . lib . optional pkgs . stdenv . isDarwin pkgs . darwin . apple_sdk . frameworks . Security ;
8- } ) ;
14+ "watchdog" = python . overrideDerivation super . "watchdog" ( old : {
15+ buildInputs = old . buildInputs
16+ ++ optionals pkgs . stdenv . isDarwin
17+ [ pkgs . darwin . apple_sdk . frameworks . CoreServices
18+ pkgs . darwin . cf-private
19+ ] ;
920
10- "watchdog" = python . overrideDerivation super . "watchdog" ( old : {
11- buildInputs = old . buildInputs
12- ++ pkgs . lib . optionals pkgs . stdenv . isDarwin
13- [ pkgs . darwin . apple_sdk . frameworks . CoreServices pkgs . darwin . cf-private ] ;
14-
15- } ) ;
16-
17- }
21+ } ) ;
22+ } ;
23+ commonOverrides = self : super :
24+ mapAttrs
25+ ( name : drv : python . overrideDerivation super . "${ name } " ( old : {
26+ postInstall =
27+ ( if builtins . hasAttr "postInstall" old
28+ then old . postInstall
29+ else ""
30+ ) + ''
31+ rm -f $out/bin/*.pyc # hey emacs */
32+ '' ;
33+ } ) )
34+ super ;
35+ in
36+ composeExtensions commonOverrides specificOverrides
You can’t perform that action at this time.
0 commit comments