14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-B+H3G4jVysqrzWIP+1hktSGnycZLizxhmBCO/lYIr0I=";
25 cargoHash = "sha256-LFL2DVKu/UM7effikZN/IhSD6DrlwO+CF+S60PXULa0=";
29 ] ++ lib.optionals stdenv.isLinux [
33 buildInputs = lib.optionals stdenv.isLinux [
40 ] ++ lib.optionals stdenv.isDarwin [
41 darwin.apple_sdk_11_0.frameworks.AppKit
45 installShellCompletion --cmd inlyne \
46 --bash <($out/bin/inlyne --gen-completions bash) \
47 --fish <($out/bin/inlyne --gen-completions fish) \
48 --zsh <($out/bin/inlyne --gen-completions zsh)
51 postFixup = lib.optionalString stdenv.isLinux ''
52 patchelf $out/bin/inlyne \
53 --add-rpath ${lib.makeLibraryPath [ libGL xorg.libX11 ]}
57 description = "A GPU powered browserless markdown viewer";
58 homepage = "https://github.com/trimental/inlyne";
59 changelog = "https://github.com/trimental/inlyne/releases/tag/${src.rev}";
60 license = licenses.mit;
61 maintainers = with maintainers; [ figsoda ];