16 rustPlatform.buildRustPackage rec {
20 src = fetchFromGitHub {
24 hash = "sha256-Kae8WnahA/6k6QT5htYU2+diAFkmxVsbVaxRUlhf39o=";
27 cargoHash = "sha256-M6daK2y9HBRDV2wQjw87g1QYOqiJBfRf9uW1Eg6z6C8=";
31 ] ++ lib.optionals stdenv.isLinux [
35 buildInputs = lib.optionals stdenv.isLinux [
44 ] ++ lib.optionals stdenv.isDarwin [
45 darwin.apple_sdk_11_0.frameworks.AppKit
48 checkFlags = lib.optionals stdenv.isDarwin [
50 "--skip=interpreter::tests::centered_image_with_size_align_and_link"
51 "--skip=watcher::tests::the_gauntlet"
55 installShellCompletion --cmd inlyne \
56 --bash <($out/bin/inlyne --gen-completions bash) \
57 --fish <($out/bin/inlyne --gen-completions fish) \
58 --zsh <($out/bin/inlyne --gen-completions zsh)
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 changelog = "https://github.com/trimental/inlyne/releases/tag/${src.rev}";
70 license = licenses.mit;
71 maintainers = with maintainers; [ figsoda ];
72 mainProgram = "inlyne";