File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 11
11
"x86_64-darwin"
12
12
"x86_64-linux"
13
13
] ;
14
- foreachSystem = f : lib . foldl' ( attrs : system : lib . recursiveUpdate attrs ( f system ) ) { } systems ;
14
+ foreachSystem = lib . genAttrs systems ;
15
15
in
16
16
{
17
- overlay = ( final : prev : {
17
+ overlays . default = ( final : prev : {
18
18
git-branchless = final . callPackage
19
19
(
20
20
{ lib
110
110
inherit ( final . darwin . apple_sdk . frameworks ) Security SystemConfiguration ;
111
111
} ;
112
112
} ) ;
113
- } //
114
- ( foreachSystem ( system :
115
- let
116
- pkgs = import nixpkgs {
117
- inherit system ;
118
- overlays = [ self . overlay ] ;
119
- } ;
120
- in
121
- {
122
- packages . ${ system } = {
113
+
114
+ packages = foreachSystem ( system :
115
+ let
116
+ pkgs = nixpkgs . legacyPackages . ${ system } . extend self . overlays . default ;
117
+ in
118
+ {
123
119
inherit ( pkgs )
124
120
git-branchless scm-diff-editor ;
125
- } ;
121
+ default = pkgs . git-branchless ;
122
+ }
123
+ ) ;
126
124
127
- defaultPackage . ${ system } = self . packages . ${ system } . git-branchless ;
128
- checks . ${ system } . git-branchless = pkgs . git-branchless . overrideAttrs ( { preCheck , ... } : {
129
- cargoBuildType = "debug" ;
130
- cargoCheckType = "debug" ;
131
- preCheck = ''
132
- export RUST_BACKTRACE=1
133
- '' + preCheck ;
134
- } ) ;
135
- } ) ) ;
125
+ checks = foreachSystem ( system : {
126
+ git-branchless =
127
+ self . packages . ${ system } . git-branchless . overrideAttrs ( { preCheck , ... } : {
128
+ cargoBuildType = "debug" ;
129
+ cargoCheckType = "debug" ;
130
+ preCheck = ''
131
+ export RUST_BACKTRACE=1
132
+ '' + preCheck ;
133
+ } ) ;
134
+ } ) ;
135
+ } ;
136
136
}
You can’t perform that action at this time.
0 commit comments