summaryrefslogtreecommitdiff
path: root/packages/parinfer-rust.nix
blob: a925834fb507de3ba48c8007e0123c38032f689b (plain)
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 = "0.5.0-unstable-2024-05-07";

  src = fetchFromGitHub {
    owner = "eraserhd";
    repo = "parinfer-rust";
    rev = "d84828b453e158d06406f6b5e9056f6b54ff76c9";
    hash = "sha256-Q2fYogfn5QcNDEie4sUaVydAmDmcFXnsvz35cxPCf+M=";
  };

  cargoHash = "sha256-awps5BAtImc7q/D2W/vPOrFVh45k43xqUJXbOTyZF+s=";

  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 ];
  };
}