about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-30 20:02:27 -0400
committerfigsoda <figsoda@pm.me>2023-05-30 20:02:27 -0400
commitd594e7f890dd15c571936987a4afc01992c66ab9 (patch)
treebae9c16a67c17b2c96bbea8a40695cefa30abdc9 /pkgs/tools/misc
parent5659c7faf24975f8fa0a124eee7638af21b441ce (diff)
rustypaste-cli: init at 0.4.0
https://github.com/orhun/rustypaste-cli
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/rustypaste-cli/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rustypaste-cli/default.nix b/pkgs/tools/misc/rustypaste-cli/default.nix
new file mode 100644
index 0000000000000..e82465afcd477
--- /dev/null
+++ b/pkgs/tools/misc/rustypaste-cli/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rustypaste-cli";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "orhun";
+    repo = "rustypaste-cli";
+    rev = "v${version}";
+    hash = "sha256-Jl7fytDIW6MLY6VX7rDuX9PcZaIqENQbUTMUJKCa8Mg=";
+  };
+
+  cargoHash = "sha256-hICwrgzNpyYmNW1gEKgTsSjWyqCaOHc4X37O0R2oSzY=";
+
+  buildInputs = lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
+  meta = with lib; {
+    description = "A CLI tool for rustypaste";
+    homepage = "https://github.com/orhun/rustypaste-cli";
+    changelog = "https://github.com/orhun/rustypaste-cli/blob/${src.rev}/CHANGELOG.md";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+    mainProgram = "rpaste";
+  };
+}