Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lief: 0.12.1 -> 0.12.2 #191863

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions pkgs/development/libraries/lief/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ let
in
stdenv.mkDerivation rec {
pname = "lief";
version = "0.12.1";
version = "0.12.2";

src = fetchFromGitHub {
owner = "lief-project";
repo = "LIEF";
rev = version;
sha256 = "sha256-IQqPwTNFHLOr8iwg8IhXpuiyg2rIdFuVDzwT39eA6/c=";
sha256 = "sha256-/ndScq6qfQt68bWtRs/RTQjLykbjnTu1K56Rlc35WjI=";
};

patches = [
./setup-py-complete-copy2-transition.patch
];

outputs = [ "out" "py" ];

nativeBuildInputs = [
Expand Down Expand Up @@ -64,7 +68,7 @@ stdenv.mkDerivation rec {
description = "Library to Instrument Executable Formats";
homepage = "https://lief.quarkslab.com/";
license = [ licenses.asl20 ];
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.lassulus ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
See https://github.com/lief-project/LIEF/issues/770#issuecomment-1250394972

diff --git a/setup.py b/setup.py
index 7af3e203..d276cc23 100644
--- a/setup.py
+++ b/setup.py
@@ -346,9 +346,8 @@ class BuildLibrary(build_ext):
sdk_path = str(sdk_path.pop())
sdk_output = str(pathlib.Path(CURRENT_DIR) / "build")

- copy_file(
- sdk_path, sdk_output, verbose=self.verbose,
- dry_run=self.dry_run)
+ if not self.dry_run:
+ copy2(sdk_path, sdk_output)

def get_platform():
out = get_platform_backup()