figsoda 2023-11-18 20:12:16 -05:00
parent 9f1e5c1baf
commit 8456dd1f76

View File

@ -1,24 +1,27 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, rust-jemalloc-sys
, stdenv , stdenv
, darwin , darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "oxlint"; pname = "oxlint";
version = "0.0.15"; version = "0.0.17";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "web-infra-dev"; owner = "web-infra-dev";
repo = "oxc"; repo = "oxc";
rev = "oxlint_v${version}"; rev = "oxlint_v${version}";
hash = "sha256-zjTJF8yU3Hb8CTzzsPdo2EJI7QriEsjUyXVwprb22xQ="; hash = "sha256-s+D9+gHJLldTaMHr+XahppNHYL62V1J9iOgRZkr/p9Q=";
}; };
cargoHash = "sha256-mRmoCH0VVO9LhFfEd4VfDbCfl5VCpcIKBkaNzU0+9SU="; cargoHash = "sha256-NQ/s39x/LLQoiW7p2x65l1oBkDal46g5/G6r4Ttpgsw=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = [
rust-jemalloc-sys
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.Security
]; ];