nixpkgs-suyu/pkgs/development/libraries/libx86emu/default.nix

36 lines
876 B
Nix
Raw Normal View History

2017-11-15 22:13:24 +01:00
{ stdenv, fetchFromGitHub, perl }:
2015-04-20 13:55:04 +02:00
stdenv.mkDerivation rec {
name = "libx86emu-${version}";
2017-11-15 22:13:24 +01:00
version = "1.12";
2015-04-20 13:55:04 +02:00
2017-11-15 22:13:24 +01:00
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
sha256 = "0dlzvwdkk0vc6qf0a0zzbxki3pig1mda8p3fa54rxqaxkwp4mqr6";
2015-04-20 13:55:04 +02:00
};
2017-11-15 22:13:24 +01:00
nativeBuildInputs = [ perl ];
2015-04-20 13:55:04 +02:00
2017-11-15 22:13:24 +01:00
postUnpack = "rm $sourceRoot/git2log";
2015-04-20 13:55:04 +02:00
patchPhase = ''
# VERSION is usually generated using Git
echo "${version}" > VERSION
2017-11-15 22:13:24 +01:00
substituteInPlace Makefile --replace "/usr" "/"
2015-04-20 13:55:04 +02:00
'';
2017-11-15 22:13:24 +01:00
buildFlags = [ "shared" ];
enableParallelBuilding = true;
2015-04-20 13:55:04 +02:00
2017-11-15 22:13:24 +01:00
installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
2015-04-20 13:55:04 +02: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 04:59:41 +02:00
platforms = platforms.linux;
2015-04-20 13:55:04 +02:00
};
}