git.iko.soy/typeable/nixpkgs
on master help sign in
sheesy-cli: init at 4.0.11
commitf944147dbb9b4b96f8320c499c68ea319eef06a7 authordevhell <devhell@mailfresser.de> dateSun 2 May 2021, 20:44 (6 years ago) parent54d306a
2 files changed+41
pkgs/tools/security/sheesy-cli/default.nix+37 pkgs/top-level/all-packages.nix+4
pkgs/tools/security/sheesy-cli/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib, stdenv, rustPlatform, fetchCrate, installShellFiles
2+, libgpgerror, gpgme, gettext, openssl, Security
3+}:
4+
5+rustPlatform.buildRustPackage rec {
6+ pname = "sheesy-cli";
7+ version = "4.0.11";
8+
9+ src = fetchCrate {
10+ inherit version pname;
11+ sha256 = "1l21ji9zqy8x1g2gvqwdhya505max07ibx1hh88s36k0jbvdb7xc";
12+ };
13+
14+ cargoSha256 = "159a5ph1gxwcgahyr8885lq3c1w76nxzfrfdpyqixqrr7jzx2rd3";
15+ cargoDepsName = pname;
16+
17+ cargoBuildFlags = [ "--bin sy" "--features" "vault,extract,completions,substitute,process" ];
18+
19+ nativeBuildInputs = [ libgpgerror gpgme gettext installShellFiles ];
20+
21+ buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
22+
23+ postInstall = ''
24+ installShellCompletion --cmd sy \
25+ --bash <($out/bin/sy completions bash) \
26+ --fish <($out/bin/sy completions fish) \
27+ --zsh <($out/bin/sy completions zsh)
28+ '';
29+
30+ meta = with lib; {
31+ description = "The 'share-secrets-safely' CLI to interact with GPG/pass-like vaults";
32+ homepage = "https://share-secrets-safely.github.io/cli/";
33+ changelog = "https://github.com/share-secrets-safely/cli/releases/tag/${version}";
34+ license = with licenses; [ lgpl21Only ];
35+ maintainers = with maintainers; [ devhell ];
36+ };
37+}
pkgs/top-level/all-packages.nix+4
@@ -3039,6 +3039,10 @@ in
30393039
30403040 shellhub-agent = callPackage ../applications/networking/shellhub-agent { };
30413041
3042+ sheesy-cli = callPackage ../tools/security/sheesy-cli {
3043+ inherit (darwin.apple_sdk.frameworks) Security;
3044+ };
3045+
30423046 simdjson = callPackage ../development/libraries/simdjson { };
30433047
30443048 shipyard = callPackage ../tools/virtualization/shipyard { };