summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2020-01-18 23:07:49 +0100
committerGitHub <noreply@github.com>2020-01-18 23:07:49 +0100
commitd5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc (patch)
tree6aae09fda67571ef155db15ecd54e52e1eac45d4 /pkgs
parent5d1fda386e3692c7ea73c13ca1261ae46746a259 (diff)
parent2d0a6808d7fc46a5ed4bdb1e4417247ad74a5d76 (diff)
downloadnixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar.gz
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar.bz2
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar.lz
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar.xz
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.tar.zst
nixpkgs-d5f9a98e0610f54dec5c3d2f6114b4ae3b4139dc.zip
Merge pull request #77974 from marsam/init-rage
rage: init at 0.2.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/rage/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/rage/default.nix b/pkgs/tools/security/rage/default.nix
new file mode 100644
index 00000000000..63cc2972a58
--- /dev/null
+++ b/pkgs/tools/security/rage/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, rustPlatform, fetchFromGitHub, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rage";
+  version = "0.2.0";
+
+  src = fetchFromGitHub {
+    owner = "str4d";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0ri4rfhy1wl0cppi2cp97kkiz08x2f072yfahn2kv9r4v1i9f4a7";
+  };
+
+  cargoSha256 = "02adwvcvha83zcvc5n7p88l7wmkg52j2xhznmhabc0zn328as2yd";
+
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
+  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";
+    license = licenses.asl20;
+    maintainers = [ maintainers.marsam ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8882ef3c6c9..37829bedefb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2946,6 +2946,10 @@ in
 
   mcrcon = callPackage ../tools/networking/mcrcon {};
 
+  rage = callPackage ../tools/security/rage {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
+
   s-tar = callPackage ../tools/archivers/s-tar {};
 
   sonota = callPackage ../tools/misc/sonota { };