@@ -0,0 +1,28 @@
1+{ stdenv, rustPlatform, fetchFromGitHub }:
2+
3+rustPlatform.buildRustPackage rec {
4+ name = "parinfer-rust-${version}";
5+ version = "0.3.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "eraserhd";
9+ repo = "parinfer-rust";
10+ rev = "v${version}";
11+ sha256 = "0w7fcg33k8k16q8wzax44ck8csa2dr7bmwcz1g57dz33vhxi8ajc";
12+ };
13+
14+ cargoSha256 = "17fkzpvfaxixllr9nxx7dnpqxkiighggryxf30j3lafghyrx987f";
15+
16+ postInstall = ''
17+ mkdir -p $out/share/kak/autoload/plugins
18+ cp rc/parinfer.kak $out/share/kak/autoload/plugins/
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "Infer parentheses for Clojure, Lisp, and Scheme.";
23+ homepage = "https://github.com/eraserhd/parinfer-rust";
24+ license = licenses.isc;
25+ maintainers = with maintainers; [ eraserhd ];
26+ platforms = platforms.all;
27+ };
28+}