nixos-option: rewrite as a nix script, 2nd try (#369151)
[NixPkgs.git] / pkgs / by-name / ud / udis86 / package.nix
blobe0121bbbd8479889e0fdf89a6dadd03fb6e1aea5
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   autoreconfHook,
7   python3,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "udis86";
12   version = "unstable-2014-12-25";
14   src = fetchFromGitHub {
15     owner = "vmt";
16     repo = "udis86";
17     rev = "56ff6c87c11de0ffa725b14339004820556e343d";
18     hash = "sha256-bmm1rgzZeStQJXEmcT8vnplsnmgN3LJlYs7COmqsDU8=";
19   };
21   patches = [
22     (fetchpatch {
23       name = "support-python3-for-building";
24       url = "https://github.com/vmt/udis86/commit/3c05ce60372cb2eba39d6eb87ac05af8a664e1b1.patch";
25       hash = "sha256-uF4Cwt7UMkyd0RX6cCMQt9xvkkUNQvTDH/Z/6nHtVT8=";
26     })
27   ];
29   nativeBuildInputs = [
30     autoreconfHook
31     python3
32   ];
34   configureFlags = [
35     "--enable-shared"
36   ];
38   outputs = [
39     "bin"
40     "out"
41     "dev"
42     "lib"
43   ];
45   meta = with lib; {
46     homepage = "https://udis86.sourceforge.net";
47     license = licenses.bsd2;
48     maintainers = with maintainers; [ timor ];
49     mainProgram = "udcli";
50     description = ''
51       Easy-to-use, minimalistic x86 disassembler library (libudis86)
52     '';
53     platforms = platforms.all;
54   };