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";
|
|
|
|
version = "4d4f4c6c0d3b44c8443f3102bfadfb67dfb385f7";
|
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-03-23 07:18:50 +01:00
|
|
|
sha256 = lib.fakeSha256;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|