Skip to content

Commit

Permalink
Merge pull request #80 from felixscheinost/add-aarch64-darwin-package
Browse files Browse the repository at this point in the history
Add package for aarch64-darwin
  • Loading branch information
ryantm authored Mar 9, 2022
2 parents 297cd58 + 42a250c commit 25b5bcf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
17 changes: 10 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
description = "Secret management with age";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
};

outputs = { self, nixpkgs }:
let
agenix = system: nixpkgs.legacyPackages.${system}.callPackage ./pkgs/agenix.nix {};
Expand All @@ -20,6 +24,9 @@
packages."x86_64-darwin".agenix = agenix "x86_64-darwin";
defaultPackage."x86_64-darwin" = self.packages."x86_64-darwin".agenix;

packages."aarch64-darwin".agenix = agenix "aarch64-darwin";
defaultPackage."aarch64-darwin" = self.packages."aarch64-darwin".agenix;

packages."x86_64-linux".agenix = agenix "x86_64-linux";
defaultPackage."x86_64-linux" = self.packages."x86_64-linux".agenix;
checks."x86_64-linux".integration = import ./test/integration.nix {
Expand Down
6 changes: 3 additions & 3 deletions test/integration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({ pkgs, ...}: {
system1.wait_until_succeeds("pgrep -f 'agetty.*tty1'")
system1.sleep(2)
system1.send_key("alt-f2")
system1.wait_until_succeeds(f"[ $(fgconsole) = 2 ]")
system1.wait_for_unit(f"getty@tty2.service")
system1.wait_until_succeeds(f"pgrep -f 'agetty.*tty2'")
system1.wait_until_succeeds("[ $(fgconsole) = 2 ]")
system1.wait_for_unit("getty@tty2.service")
system1.wait_until_succeeds("pgrep -f 'agetty.*tty2'")
system1.wait_until_tty_matches(2, "login: ")
system1.send_chars("${user}\n")
system1.wait_until_tty_matches(2, "login: ${user}")
Expand Down

0 comments on commit 25b5bcf

Please sign in to comment.