Skip to content

Commit

Permalink
ecc-rs: fix wrapper
Browse files Browse the repository at this point in the history
Co-authored-by: nikitax44 <49244351+nikitax44@users.noreply.github.com>
  • Loading branch information
oluceps and nikitax44 committed Mar 10, 2025
1 parent 69c2bfd commit a4aa6be
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions pkgs/by-name/ec/ecc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
pkg-config,
elfutils,
zlib,
gnused,
bash,
}:
let
inherit (rustPackages.rustc) llvmPackages;
Expand Down Expand Up @@ -89,6 +91,11 @@ rustPlatform.buildRustPackage rec {
export BPFTOOL_DIR=${bpftool}
'';

hardeningDisable = [
"stackprotector"
"zerocallusedregs"
];

preCheck = ''
export HOME=$NIX_BUILD_TOP
'';
Expand All @@ -112,13 +119,17 @@ rustPlatform.buildRustPackage rec {

postFixup = ''
wrapProgram $out/bin/ecc-rs \
--prefix LIBCLANG_PATH : ${lib.getLib llvmPackages.libclang}/lib \
--prefix PATH : ${
--set LIBCLANG_PATH ${lib.getLib llvmPackages.libclang}/lib \
--prefix EUNOMIA_HOME : "\$HOME/.local/share/eunomia" \
--set PATH ${
lib.makeBinPath (
with llvmPackages;
[
(with llvmPackages; [
clang
bintools-unwrapped
])
++ [
gnused
bash
]
)
}
Expand Down

0 comments on commit a4aa6be

Please sign in to comment.