about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/parinfer-rust.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/parinfer-rust.nix b/packages/parinfer-rust.nix
new file mode 100644
index 0000000..6bf07dd
--- /dev/null
+++ b/packages/parinfer-rust.nix
@@ -0,0 +1,29 @@
+{
+  lib,
+  fetchFromGitHub,
+  rustPlatform,
+}:
+rustPlatform.buildRustPackage rec {
+  pname = "parinfer-rust";
+  version = "unstable-2023-08-23";
+
+  src = fetchFromGitHub {
+    owner = "eraserhd";
+    repo = "parinfer-rust";
+    rev = "0e4d52e712641ad351a1bfe6cee3d34d63ed087b";
+    hash = "sha256-xYdSOQMqeIaN5ADiwg5DkjyworcT6FWGJvJUV1NOb+0=";
+  };
+
+  cargoHash = "sha256-C8RO6A1soSjtGzmtkwtApObAvS7YRqHnc0JwcHzoP/8=";
+
+  buildFeatures = ["emacs"];
+
+  nativeBuildInputs = [rustPlatform.bindgenHook];
+
+  meta = with lib; {
+    description = "A Rust port of parinfer";
+    inherit (finalAttrs.src.meta) homepage;
+    license = licenses.isc;
+    maintainers = with maintainers; [azahi];
+  };
+}

Consider giving Nix/NixOS a try! <3