NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.09k stars 14.08k forks source link

Package request: syncat #261220

Open Freed-Wu opened 1 year ago

Freed-Wu commented 1 year ago

Project description

syncat is a pager like bat, however, it uses tree-sitter to parse.

Metadata

eclairevoyant commented 1 year ago

Is this software maintained? I don't see a substantial update in 3 years.

Freed-Wu commented 1 year ago

@foxfriends

foxfriends commented 1 year ago

Oh hey

It's... maintained enough. I use it myself on occasion, just haven't had any reason to update it. Does what I need and that's it. Was really just a one off project from years ago to get the job done, cause I didn't like the available options

Would be willing to modernize it a little if suddenly it has interest? There's certainly a lot of ways to make it better and more reliable that are only worth it if people want it!

eclairevoyant commented 1 year ago

Cool, happy to take a stab at packaging it, then.

jfvillablanca commented 1 year ago

Hi, I tried packaging this but I always get a problem with openssl not being found. I already set nativeBuildInputs to use pkg-config, buildInputs to openssl. I tried this

  preBuild = ''
     export OPENSSL_DIR=${lib.getLib openssl}
  '';
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
  OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
  OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_DIR
  OPENSSL_DIR = /nix/store/y2hmc1ypa5yw54jsizxbn9gjag0d468k-openssl-3.0.10

  --- stderr
  thread 'main' panicked at 'OpenSSL include directory does not exist:

maybe that gives someone some clue

MikaelFangel commented 1 year ago

@jfvillablanca - I used openssl.dev to make the build progress further but got stuck on another error.

teto commented 1 year ago

wouldnt a specific configuration for nvim/emacs do the same job in a maybe more battle-tested way ?

foxfriends commented 1 year ago

i know nothing of packaging but, if it helps we could switch to using the vendored-openssl feature of git2 (https://github.com/rust-lang/git2-rs/blob/master/Cargo.toml). could do vendored-libgit2 too

should be easy enough to turn those features on optionally at build time of syncat

foxfriends commented 1 year ago

i've added the options, you may try and see if any better luck :shrug: cargo build --release --features vendored-openssl,vendored-libgit2 or such

MikaelFangel commented 1 year ago

@foxfriends It helped me build the package. Thanks! 👍🏻