mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-05 16:17:47 +00:00
fix nix flake check on macOS
This commit is contained in:
parent
16e94d49ea
commit
8bdf7d0993
2 changed files with 5 additions and 6 deletions
5
.github/workflows/test-flakes.yml
vendored
5
.github/workflows/test-flakes.yml
vendored
|
@ -16,7 +16,6 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: cachix/install-nix-action@v14
|
- uses: cachix/install-nix-action@v14
|
||||||
with:
|
with:
|
||||||
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
|
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
system-features = nixos-test benchmark big-parallel kvm
|
system-features = nixos-test benchmark big-parallel kvm
|
||||||
|
@ -27,5 +26,5 @@ jobs:
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: List flake structure
|
- name: List flake structure
|
||||||
run: nix flake show
|
run: nix flake show
|
||||||
- name: Run unit tests (flake)
|
- name: Run flake check (flake)
|
||||||
run: nix build --no-link .#unit-tests -L
|
run: nix flake check -L
|
||||||
|
|
|
@ -11,7 +11,6 @@ in rec {
|
||||||
Also see https://github.com/Mic92/sops-nix/issues/98
|
Also see https://github.com/Mic92/sops-nix/issues/98
|
||||||
'' pkgs.callPackage ./pkgs/sops-pgp-hook { };
|
'' pkgs.callPackage ./pkgs/sops-pgp-hook { };
|
||||||
sops-import-keys-hook = pkgs.callPackage ./pkgs/sops-import-keys-hook { };
|
sops-import-keys-hook = pkgs.callPackage ./pkgs/sops-import-keys-hook { };
|
||||||
inherit sops-install-secrets;
|
|
||||||
|
|
||||||
# backwards compatibility
|
# backwards compatibility
|
||||||
inherit (pkgs) ssh-to-pgp;
|
inherit (pkgs) ssh-to-pgp;
|
||||||
|
@ -26,8 +25,9 @@ in rec {
|
||||||
install -D sops-pgp-hook.test $out/bin/sops-pgp-hook.test
|
install -D sops-pgp-hook.test $out/bin/sops-pgp-hook.test
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
unit-tests = pkgs.callPackage ./unit-tests.nix {};
|
unit-tests = pkgs.callPackage ./unit-tests.nix {};
|
||||||
|
} // (pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
|
inherit sops-install-secrets;
|
||||||
|
|
||||||
lint = sops-install-secrets.overrideAttrs (old: {
|
lint = sops-install-secrets.overrideAttrs (old: {
|
||||||
name = "golangci-lint";
|
name = "golangci-lint";
|
||||||
|
@ -54,4 +54,4 @@ in rec {
|
||||||
'';
|
'';
|
||||||
fixupPhase = ":";
|
fixupPhase = ":";
|
||||||
});
|
});
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue