about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-06-01 09:26:31 -0400
committerGitHub <noreply@github.com>2023-06-01 09:26:31 -0400
commitb5c5d7b9c970e36b0ae054578c85ca7bde2de193 (patch)
tree527999904079a0affac57eb0d652fb1447410271 /pkgs/tools/misc
parent59a6454a3ab5b797de0540bbcd3218b992fcaea6 (diff)
parentd594e7f890dd15c571936987a4afc01992c66ab9 (diff)
Merge pull request #235088 from figsoda/rpaste
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";
+  };
+}