2017-11-15 21:13:24 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl }:
|
2015-04-20 12:55:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libx86emu";
|
2019-09-27 17:43:27 +01:00
|
|
|
version = "2.4";
|
2015-04-20 12:55:04 +01:00
|
|
|
|
2017-11-15 21:13:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfeldt";
|
|
|
|
repo = "libx86emu";
|
|
|
|
rev = version;
|
2019-09-27 17:43:27 +01:00
|
|
|
sha256 = "0r55ij8f5mab2kg6kvy5n2bw6avzp75nsxigbzy7dgik9zwsxvr4";
|
2015-04-20 12:55:04 +01:00
|
|
|
};
|
|
|
|
|
2017-11-15 21:13:24 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2015-04-20 12:55:04 +01:00
|
|
|
|
2017-11-15 21:13:24 +00:00
|
|
|
postUnpack = "rm $sourceRoot/git2log";
|
2015-04-20 12:55:04 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# VERSION is usually generated using Git
|
|
|
|
echo "${version}" > VERSION
|
2017-11-15 21:13:24 +00:00
|
|
|
substituteInPlace Makefile --replace "/usr" "/"
|
2015-04-20 12:55:04 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-15 21:13:24 +00:00
|
|
|
buildFlags = [ "shared" ];
|
|
|
|
enableParallelBuilding = true;
|
2015-04-20 12:55:04 +01:00
|
|
|
|
2017-11-15 21:13:24 +00:00
|
|
|
installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
|
2015-04-20 12:55:04 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "x86 emulation library";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
homepage = https://github.com/wfeldt/libx86emu;
|
|
|
|
maintainers = with maintainers; [ bobvanderlinden ];
|
2017-04-08 03:59:41 +01:00
|
|
|
platforms = platforms.linux;
|
2015-04-20 12:55:04 +01:00
|
|
|
};
|
|
|
|
}
|