File tree 2 files changed +22
-7
lines changed
2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : " Nix"
2
+ on :
3
+ pull_request :
4
+ push :
5
+ jobs :
6
+ tests :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - uses : cachix/install-nix-action@v25
11
+ with :
12
+ nix_path : nixpkgs=channel:nixos-unstable
13
+ - uses : DeterminateSystems/magic-nix-cache-action@v2
14
+ - run : nix flake check
Original file line number Diff line number Diff line change 7
7
forAllSystems = nixpkgs . lib . genAttrs systems ;
8
8
nixpkgsFor = forAllSystems ( system : import nixpkgs {
9
9
inherit system ;
10
- overlays = [ self . overlay ] ;
10
+ overlays = [ self . overlays . default ] ;
11
11
} ) ;
12
12
optionsDocFor = forAllSystems ( system :
13
13
import ./nix/module-options-doc.nix ( nixpkgsFor . "${ system } " )
14
14
) ;
15
15
in {
16
- overlay = final : prev : {
16
+ overlays . default = final : prev : {
17
17
comin = final . buildGoModule rec {
18
18
pname = "comin" ;
19
19
version = "0.2.0" ;
42
42
} ;
43
43
44
44
packages = forAllSystems ( system : {
45
- inherit ( nixpkgsFor . "${ system } " ) comin ;
45
+ default = nixpkgsFor . "${ system } " . comin ;
46
46
generate-module-options = optionsDocFor . "${ system } " . optionsDocCommonMarkGenerator ;
47
47
} ) ;
48
- defaultPackage = forAllSystems ( system : self . packages . "${ system } " . comin ) ;
49
48
checks = forAllSystems ( system : {
50
- options-doc = optionsDocFor . "${ system } " . checkOptionsDocCommonMark ;
49
+ module-options-doc = optionsDocFor . "${ system } " . checkOptionsDocCommonMark ;
50
+ # I don't understand why nix flake check does't build packages.default
51
+ package = nixpkgsFor . "${ system } " . comin ;
51
52
} ) ;
52
53
53
- nixosModules . comin = import ./nix/module.nix self . overlay ;
54
- devShell . x86_64-linux = let
54
+ nixosModules . comin = import ./nix/module.nix self . packages . default ;
55
+ devShells . x86_64-linux . default = let
55
56
pkgs = nixpkgs . legacyPackages . x86_64-linux ;
56
57
in pkgs . mkShell {
57
58
buildInputs = [
You can’t perform that action at this time.
0 commit comments