nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 installShellFiles,
5 gpgme,
6 libgpg-error,
7 pkg-config,
8 rustPlatform,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "envio";
13 version = "0.6.1";
14
15 src = fetchFromGitHub {
16 owner = "envio-cli";
17 repo = "envio";
18 rev = "v${version}";
19 hash = "sha256-je0DBoBIayFK//Aija5bnO/2z+hxNWgVkwOgxMyq5s4=";
20 };
21
22 cargoHash = "sha256-stb5BZ77yBUjP6p3yfdgtN6fkE7wWU6A+sPAmc8YZD0=";
23
24 nativeBuildInputs = [
25 pkg-config
26 installShellFiles
27 ];
28
29 buildInputs = [
30 libgpg-error
31 gpgme
32 ];
33
34 postInstall = ''
35 installManPage man/*.1
36 '';
37
38 meta = {
39 homepage = "https://envio-cli.github.io/home";
40 changelog = "https://github.com/envio-cli/envio/blob/${version}/CHANGELOG.md";
41 description = "Modern and secure CLI tool for managing environment variables";
42 mainProgram = "envio";
43 longDescription = ''
44 Envio is a command-line tool that simplifies the management of
45 environment variables across multiple profiles. It allows users to easily
46 switch between different configurations and apply them to their current
47 environment.
48 '';
49 license = with lib.licenses; [
50 mit
51 asl20
52 ];
53 platforms = lib.platforms.unix;
54 maintainers = with lib.maintainers; [ afh ];
55 };
56}