From 9ee630a93e2b226daaea17b454fba0069208826e Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Sat, 26 Nov 2022 23:30:25 +0100 Subject: [PATCH] pe-bear: init at 0.6.1 --- pkgs/applications/misc/pe-bear/default.nix | 48 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/applications/misc/pe-bear/default.nix diff --git a/pkgs/applications/misc/pe-bear/default.nix b/pkgs/applications/misc/pe-bear/default.nix new file mode 100644 index 000000000000..5dd8fac6de8b --- /dev/null +++ b/pkgs/applications/misc/pe-bear/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, qtbase +, wrapQtAppsHook +}: + +stdenv.mkDerivation rec { + pname = "pe-bear"; + version = "0.6.1"; + + src = fetchFromGitHub { + owner = "hasherezade"; + repo = "pe-bear"; + rev = "v${version}"; + sha256 = "jzgsjqic5rBsyuwJW9T44rKM8rKDce564VAogDvsLho="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + cmake + wrapQtAppsHook + ]; + + buildInputs = [ + qtbase + ]; + + meta = with lib; { + description = "Portable Executable reversing tool with a friendly GUI"; + homepage = "https://hshrzd.wordpress.com/pe-bear/"; + + license = [ + # PE-Bear + licenses.gpl2Only + + # Vendored capstone + licenses.bsd3 + + # Vendored bearparser + licenses.bsd2 + ]; + + maintainers = with maintainers; [ blitz ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0250438fa03..95ed0b18ff5c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -777,6 +777,8 @@ with pkgs; pet = callPackage ../development/tools/pet { }; + pe-bear = libsForQt5.callPackage ../applications/misc/pe-bear {}; + pkger = callPackage ../development/libraries/pkger { }; tapview = callPackage ../development/tools/tapview { };