Skip to content

Conversation

tennox
Copy link
Contributor

@tennox tennox commented Aug 7, 2025

New CLI package: https://github.com/Granddave/aegis-rs/

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

darwin,
}:

rustPlatform.buildRustPackage rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {

src = fetchFromGitHub {
owner = "Granddave";
repo = "aegis-rs";
rev = "v${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
rev = "v${version}";
tag = "v${finalAttrs.version}";

Comment on lines +31 to +32
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think apple_sdk has been migrated to apple-sdk and no longer has these attributes.

Suggested change
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
darwin.apple-sdk

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't need to add darwin.apple-sdk either, its in the darwin stdenv

mainProgram = "aegis-rs";
platforms = lib.platforms.all;
};
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
})

meta = {
description = "CLI tool for generating OTP codes from Aegis Authenticator vault backups";
homepage = "https://github.com/Granddave/aegis-rs";
changelog = "https://github.com/Granddave/aegis-rs/releases/tag/v${version}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
changelog = "https://github.com/Granddave/aegis-rs/releases/tag/v${version}";
changelog = "https://github.com/Granddave/aegis-rs/releases/tag/v${finalAttrs.version}";

license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ tennox ];
mainProgram = "aegis-rs";
platforms = lib.platforms.all;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rustPlatform.buildRustPackage provides a good default for this attribute

Suggested change
platforms = lib.platforms.all;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants