Skip to content

Commit

Permalink
Merge pull request #985 from onekey-sec/devenv-ruff
Browse files Browse the repository at this point in the history
chore(nix): make sure ruff is runnable on NixOS
  • Loading branch information
qkaiser authored Oct 15, 2024
2 parents d26ae04 + fe0ebf9 commit 71f37b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ lib, pkgs, ... }:

# https://devenv.sh/reference/options/
{
Expand All @@ -24,4 +24,12 @@
nvfetcher
]
++ unblob.runtimeDeps;

tasks = {
"venv:patchelf" = {
exec = "${lib.getExe pkgs.patchelf} --set-interpreter ${pkgs.stdenv.cc.bintools.dynamicLinker} $VIRTUAL_ENV/bin/ruff";
after = [ "devenv:python:poetry" ];
before = [ "devenv:enterShell" ];
};
};
}

0 comments on commit 71f37b6

Please sign in to comment.