Skip to content

Commit

Permalink
fix: move oxlint src to flake input to avoid ifd
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo committed Feb 1, 2024
1 parent 012858e commit a61b8ad
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
18 changes: 18 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
url = "github:CosmWasm/wasmvm/v1.5.0";
flake = false;
};
oxlint = {
url = "github:web-infra-dev/oxc/oxlint_v0.2.6";
flake = false;
};

# uniond versions
v0_14_0 = {
Expand Down
11 changes: 3 additions & 8 deletions tools/oxlint/oxlint.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{ ... }: {
{ inputs, ... }: {
perSystem = { pkgs, crane, ... }: {
_module.args.oxlint = crane.lib.buildPackage rec {
name = "oxlint";
pname = "oxlint";
version = "0.2.6";
src = pkgs.fetchFromGitHub {
owner = "web-infra-dev";
repo = "oxc";
rev = "oxlint_v${version}";
hash = "sha256-yjF8/oJ4GsCLk2qt1ssJ9KVMO18XsM70EnS6LMZQY3I=";
};
src = inputs.oxlint;
buildInputs = [
pkgs.jemalloc
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
Expand Down

0 comments on commit a61b8ad

Please sign in to comment.