24 rustPlatform.buildRustPackage rec {
28 src = fetchFromGitHub {
32 sha256 = "sha256-jFocERr2cW7zdLiYfAay5Dh1issKAHp6vRWYWR1Axcg=";
35 cargoSha256 = "sha256-mH8tu8koprmHo6JJ9AwYMexy2SFR2yukZmFT060cuZ4=";
37 nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
39 buildInputs = lib.optionals stdenv.isLinux [
46 ] ++ lib.optionals stdenv.isDarwin [
61 postFixup = lib.optionalString stdenv.isLinux ''
62 patchelf $out/bin/inlyne \
63 --add-rpath ${lib.makeLibraryPath [ libGL xorg.libX11 ]}
67 description = "A GPU powered browserless markdown viewer";
68 homepage = "https://github.com/trimental/inlyne";
69 license = licenses.mit;
70 maintainers = with maintainers; [ figsoda ];