2023-03-06 17:28:13 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-03-23 07:18:50 +01:00
|
|
|
pname = "parinfer-rust";
|
2023-07-13 13:25:02 +02:00
|
|
|
version = "3c769707ad3b18d530f696fe42a9d495139149ab";
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-23 07:18:50 +01:00
|
|
|
owner = "eraserhd";
|
2023-03-06 17:28:13 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-13 13:25:02 +02:00
|
|
|
sha256 = "sha256-EVFuCZo6lYXEOWQzTW7BEfB5PIbO4YA4dCMo7N4oWrM=";
|
2023-03-06 17:28:13 +01:00
|
|
|
};
|
|
|
|
|
2023-03-23 07:18:50 +01:00
|
|
|
cargoSha256 = lib.fakeSha256;
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
|
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-23 07:18:50 +01:00
|
|
|
description = "A Rust port of parinfer.";
|
|
|
|
homepage = "https://github.com/eraserhd/parinfer-rust";
|
|
|
|
license = licenses.isc;
|
2023-03-06 17:28:13 +01:00
|
|
|
maintainers = with maintainers; [ reo101 ];
|
|
|
|
};
|
|
|
|
}
|