3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/parinfer-rust/default.nix

29 lines
781 B
Nix
Raw Normal View History

2019-05-05 16:34:19 +01:00
{ stdenv, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "parinfer-rust";
2019-05-05 16:34:19 +01:00
version = "0.3.1";
src = fetchFromGitHub {
owner = "eraserhd";
repo = "parinfer-rust";
rev = "v${version}";
sha256 = "0w7fcg33k8k16q8wzax44ck8csa2dr7bmwcz1g57dz33vhxi8ajc";
};
cargoSha256 = "17fkzpvfaxixllr9nxx7dnpqxkiighggryxf30j3lafghyrx987f";
postInstall = ''
mkdir -p $out/share/kak/autoload/plugins
cp rc/parinfer.kak $out/share/kak/autoload/plugins/
'';
meta = with stdenv.lib; {
description = "Infer parentheses for Clojure, Lisp, and Scheme.";
homepage = "https://github.com/eraserhd/parinfer-rust";
license = licenses.isc;
maintainers = with maintainers; [ eraserhd ];
platforms = platforms.all;
};
}