about summary refs log tree commit diff
path: root/packages/parinfer-rust.nix
blob: e04f890c6a2bfb1d5b38b6b576901d56d7517d5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 (src.meta) homepage;
    license = licenses.isc;
    maintainers = with maintainers; [azahi];
  };
}

Consider giving Nix/NixOS a try! <3