nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 qtbase, 8 capstone, 9 bison, 10 flex, 11 wrapQtAppsHook, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "boomerang"; 16 version = "0.5.2"; 17 # NOTE: When bumping version beyond 0.5.2, you likely need to remove 18 # the cstdint.patch below. The patch does a fix that has already 19 # been done upstream but is not yet part of a release 20 21 src = fetchFromGitHub { 22 owner = "BoomerangDecompiler"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "0xncdp0z8ry4lkzmvbj5d7hlzikivghpwicgywlv47spgh8ny0ix"; 26 }; 27 28 # Boomerang usually compiles with -Werror but has not been updated for newer 29 # compilers. Disable -Werror for now. Consider trying to remove this when 30 # updating this derivation. 31 NIX_CFLAGS_COMPILE = "-Wno-error"; 32 33 nativeBuildInputs = [ 34 cmake 35 bison 36 flex 37 wrapQtAppsHook 38 ]; 39 buildInputs = [ 40 qtbase 41 capstone 42 ]; 43 patches = [ 44 (fetchpatch { 45 name = "include-missing-cstdint.patch"; 46 url = "https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74.patch"; 47 sha256 = "sha256-941IydcV3mqj7AWvXTM6GePW5VgawEcL0wrBCXqeWvc="; 48 }) 49 ]; 50 51 meta = { 52 homepage = "https://github.com/BoomerangDecompiler/boomerang"; 53 license = lib.licenses.bsd3; 54 description = "General, open source, retargetable decompiler"; 55 maintainers = [ ]; 56 }; 57}