1 { lib, stdenv, fetchFromGitHub, perl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "104xqc6nj9rpi7knl3dfqvasf087hlz2n5yndb1iycw35a6j509b";
14 nativeBuildInputs = [ perl ];
16 postUnpack = "rm $sourceRoot/git2log";
18 # VERSION is usually generated using Git
19 echo "${version}" > VERSION
20 substituteInPlace Makefile --replace "/usr" "/"
23 buildFlags = [ "shared" ];
24 enableParallelBuilding = true;
26 installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
29 description = "x86 emulation library";
30 license = licenses.bsd2;
31 homepage = "https://github.com/wfeldt/libx86emu";
32 maintainers = with maintainers; [ bobvanderlinden ];
33 platforms = platforms.linux;