Skip to content

Commit 1f6ab0a

Browse files
authored
Merge pull request #546 from onekey-sec/update-nix
Update nix & add development dependencies in shell environment
2 parents ad81bc6 + 9c4328f commit 1f6ab0a

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/unblob/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let
112112
];
113113

114114
preBuild = ''
115-
cp -r --no-preserve=mode ${rust-module} build
115+
cp -r --no-preserve=mode ${rust-module}/unblob .
116116
'';
117117

118118
makeWrapperArgs = [

nix/unblob/rust-module.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ craneLib.mkCargoDerivation {
5252
'';
5353
installPhaseCommand = ''
5454
mkdir -p $out
55-
cp -a build/* $out
55+
cp -a build/lib.*/* $out
5656
'';
5757
}

shell.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ mkShell {
1313
packages = [
1414
unblob
1515
unblob.runtimeDeps
16+
ruff
17+
pyright
18+
python3Packages.pytest
19+
python3Packages.pytest-cov
1620
poetry
1721
lzo
1822
update

0 commit comments

Comments
 (0)