Skip to content

Commit 027a43e

Browse files
committed
Add crypto-box to direnv
1 parent 9a261f9 commit 027a43e

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

dev-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ in
184184
pkgs.yq
185185
pkgs.rsync
186186
pkgs.netcat
187+
pkgs.crypto_cli
187188

188189
# To actually run buildah on nixos, I had to follow this: https://gist.github.com/alexhrescale/474d55635154e6b2cd6362c3bb403faf
189190
pkgs.buildah

nix/overlay.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
self: super: {
22
cryptobox = self.callPackage ./pkgs/cryptobox { };
33
zauth = self.callPackage ./pkgs/zauth { };
4+
crypto_cli = self.callPackage ./pkgs/crypto_cli { };
45

56
nginxModules = super.nginxModules // {
67
zauth = {

nix/pkgs/crypto_cli/default.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{ fetchFromGitHub
2+
, lib
3+
, libsodium
4+
, perl
5+
, pkg-config
6+
, rustPlatform
7+
, stdenv
8+
}:
9+
10+
rustPlatform.buildRustPackage rec {
11+
name = "crypto-cli-${version}";
12+
version = "0.1.0";
13+
nativeBuildInputs = [ pkg-config perl ];
14+
buildInputs = [ libsodium ];
15+
src = fetchFromGitHub {
16+
owner = "wireapp";
17+
repo = "core-crypto";
18+
rev = "bb9e7b6d21beaebcb4278dee1a9e6feaa77e711f";
19+
sha256 = "sha256-3D524DTgiNTqTlBIzCzTktCyYS0iA2TSi7axvzrvPLU=";
20+
};
21+
cargoSha256 = "sha256-he7cytqEhVFiPw4bVAjveh2xQE0nO1dE4yzAVWz6sSc=";
22+
}
23+

0 commit comments

Comments
 (0)