override.nix 458 B

123456789101112131415161718192021
  1. pkgs: attrs: with pkgs; with attrs; rec {
  2. version = "1.5.6";
  3. src = fetchFromGitHub {
  4. owner = "facebook";
  5. repo = "zstd";
  6. rev = "v${version}";
  7. hash = "sha256-qcd92hQqVBjMT3hyntjcgk29o9wGQsg5Hg7HE5C0UNc=";
  8. };
  9. patches= [];
  10. cmakeFlags = [
  11. "-DZSTD_BUILD_SHARED=ON"
  12. "-DZSTD_BUILD_STATIC=OFF"
  13. "-DZSTD_BUILD_TESTS=OFF"
  14. "-DZSTD_LEGACY_LEVEL:INT=1"
  15. "-DZSTD_LEGACY_SUPPORT=ON"
  16. "-DZSTD_PROGRAMS_LINK_SHARED=ON"
  17. ];
  18. }