nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 qtbase,
7 wrapQtAppsHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "pe-bear";
12 version = "0.7.1";
13
14 src = fetchFromGitHub {
15 owner = "hasherezade";
16 repo = "pe-bear";
17 rev = "v${version}";
18 hash = "sha256-jWRO0vO601IijFo7nu0SMF8inEXWLzv+Ni1nlJfGqhQ=";
19 fetchSubmodules = true;
20 };
21
22 nativeBuildInputs = [
23 cmake
24 wrapQtAppsHook
25 ];
26
27 buildInputs = [
28 qtbase
29 ];
30
31 meta = with lib; {
32 description = "Portable Executable reversing tool with a friendly GUI";
33 mainProgram = "PE-bear";
34 homepage = "https://hshrzd.wordpress.com/pe-bear/";
35
36 license = [
37 # PE-Bear
38 licenses.gpl2Only
39
40 # Vendored capstone
41 licenses.bsd3
42
43 # Vendored bearparser
44 licenses.bsd2
45 ];
46
47 maintainers = with maintainers; [ blitz ];
48 platforms = platforms.linux;
49 };
50}