python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / udis86 / default.nix
blob37408035ff933486d21f62663d610dfe46adcf0d
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , autoreconfHook
6 , python3
7 }:
9 stdenv.mkDerivation rec {
10   pname = "udis86";
11   version = "unstable-2014-12-25";
13   src = fetchFromGitHub {
14     owner = "vmt";
15     repo = "udis86";
16     rev = "56ff6c87c11de0ffa725b14339004820556e343d";
17     hash = "sha256-bmm1rgzZeStQJXEmcT8vnplsnmgN3LJlYs7COmqsDU8=";
18   };
20   patches = [
21     (fetchpatch {
22       name = "support-python3-for-building";
23       url = "https://github.com/vmt/udis86/commit/3c05ce60372cb2eba39d6eb87ac05af8a664e1b1.patch";
24       hash = "sha256-uF4Cwt7UMkyd0RX6cCMQt9xvkkUNQvTDH/Z/6nHtVT8=";
25     })
26   ];
28   nativeBuildInputs = [ autoreconfHook python3 ];
30   configureFlags = [
31     "--enable-shared"
32   ];
34   outputs = [ "bin" "out" "dev" "lib" ];
36   meta = with lib; {
37     homepage = "http://udis86.sourceforge.net";
38     license = licenses.bsd2;
39     maintainers = with maintainers; [ timor ];
40     mainProgram = "udcli";
41     description = ''
42       Easy-to-use, minimalistic x86 disassembler library (libudis86)
43     '';
44     platforms = platforms.all;
45   };