lol
at 23.05-pre 46 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, autoreconfHook 6, python3 7}: 8 9stdenv.mkDerivation rec { 10 pname = "udis86"; 11 version = "unstable-2014-12-25"; 12 13 src = fetchFromGitHub { 14 owner = "vmt"; 15 repo = "udis86"; 16 rev = "56ff6c87c11de0ffa725b14339004820556e343d"; 17 hash = "sha256-bmm1rgzZeStQJXEmcT8vnplsnmgN3LJlYs7COmqsDU8="; 18 }; 19 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 ]; 27 28 nativeBuildInputs = [ autoreconfHook python3 ]; 29 30 configureFlags = [ 31 "--enable-shared" 32 ]; 33 34 outputs = [ "bin" "out" "dev" "lib" ]; 35 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 }; 46}