Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use unstable verison of rage in place of age
* age limits the number of recipients to 20 * the latest release of rage (0.4.0) doesn't work with ssh-rsa keys
- Loading branch information
Showing
5 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
{ | ||
description = "Secret management with age"; | ||
outputs = { self, nixpkgs }: let | ||
systems = [ | ||
"x86_64-linux" | ||
"i686-linux" | ||
"x86_64-darwin" | ||
"aarch64-linux" | ||
"armv6l-linux" | ||
"armv7l-linux" | ||
]; | ||
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); | ||
in { | ||
nixosModules.age = import ./modules/age.nix; | ||
packages = forAllSystems (system: nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}); | ||
defaultPackage = forAllSystems (system: self.packages.${system}.agenix); | ||
}; | ||
|
||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
{ | ||
nixosModules.age = import ./modules/age.nix; | ||
packages = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}; | ||
defaultPackage = self.packages.${system}.agenix; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{stdenv, rustPlatform, fetchFromGitHub, installShellFiles, darwin }: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "rage"; | ||
version = "unstable-2020-09-05"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "str4d"; | ||
repo = pname; | ||
rev = "8368992e60cbedb2d6b725c3e25440e65d8544d1"; | ||
sha256 = "sha256-ICcApZQrR4hGxo/RcFMktenE4dswAXA2/nJ5D++O2ig="; | ||
}; | ||
|
||
cargoSha256 = "sha256-QwNtp7Hxsiads3bh8NRra25RdPbIdjp+pSWTllAvdmQ="; | ||
|
||
nativeBuildInputs = [ installShellFiles ]; | ||
|
||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ]; | ||
|
||
postBuild = '' | ||
cargo run --example generate-docs | ||
cargo run --example generate-completions | ||
''; | ||
|
||
postInstall = '' | ||
installManPage target/manpages/* | ||
installShellCompletion target/completions/*.{bash,fish,zsh} | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A simple, secure and modern encryption tool with small explicit keys, no config options, and UNIX-style composability"; | ||
homepage = "https://github.com/str4d/rage"; | ||
changelog = "https://github.com/str4d/rage/releases/tag/v${version}"; | ||
license = licenses.asl20; | ||
maintainers = [ maintainers.marsam ]; | ||
}; | ||
} |