about summary refs log tree commit diff
path: root/packages/parinfer-rust.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-11-26 02:03:29 +0300
committerAzat Bahawi <azat@bahawi.net>2023-11-26 02:03:29 +0300
commit2ceeed9040d0b5a015fd634122afcf35f432ba45 (patch)
tree78d3dda30937da38cdda4c9a0367653948538a53 /packages/parinfer-rust.nix
parent2023-11-25 (diff)
2023-11-26
Diffstat (limited to '')
-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