about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-04-09 01:08:11 +0800
committerGitHub <noreply@github.com>2024-04-09 01:08:11 +0800
commitf876cc416068bbd5325805c11357d14f609d2cc5 (patch)
tree6352e92196ab6bbab10650de929a167063250cf0 /pkgs/by-name
parent80cafa6a29c1d9fd383ccdd51dbb1b6e6eadcbfb (diff)
parent4818458b24ab9e78a99540e76d1533bc16bbe1be (diff)
Merge pull request #302384 from cafkafk/init-cargo-unfmt
cargo-unfmt: init at 0.3.3
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ca/cargo-unfmt/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/ca/cargo-unfmt/package.nix b/pkgs/by-name/ca/cargo-unfmt/package.nix
new file mode 100644
index 0000000000000..3a2a16dfaaf6f
--- /dev/null
+++ b/pkgs/by-name/ca/cargo-unfmt/package.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, darwin
+, libiconv
+}:
+
+rustPlatform.buildRustPackage {
+  pname = "cargo-unfmt";
+  version = "0.3.3";
+
+  src = fetchFromGitHub {
+    owner = "fprasx";
+    repo = "cargo-unfmt";
+    rev = "0f4882f65d248e32812e0e854fa11d7db60921e7";
+    hash = "sha256-nvn4nZkkNQQvzShwoxtFqHeyhXQPm2GJoTKBI+MkFgM=";
+  };
+
+  cargoHash = "sha256-mMeHTYCUIZR3jVvTxfyH4I9wGfUdCWcyn9djnksAY8k=";
+
+  buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
+
+  # Doc tests are broken on 0.3.3
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Unformat code into perfect rectangles";
+    homepage = "https://github.com/fprasx/cargo-unfmt";
+    license = licenses.gpl3Plus;
+    mainProgram = "cargo-unfmt";
+    maintainers = with maintainers; [ cafkafk ];
+  };
+}