1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/development/libraries/libx86emu/default.nix
2017-11-15 22:46:00 +01:00

36 lines
876 B
Nix

{ stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
name = "libx86emu-${version}";
version = "1.12";
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
sha256 = "0dlzvwdkk0vc6qf0a0zzbxki3pig1mda8p3fa54rxqaxkwp4mqr6";
};
nativeBuildInputs = [ perl ];
postUnpack = "rm $sourceRoot/git2log";
patchPhase = ''
# VERSION is usually generated using Git
echo "${version}" > VERSION
substituteInPlace Makefile --replace "/usr" "/"
'';
buildFlags = [ "shared" ];
enableParallelBuilding = true;
installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
meta = with stdenv.lib; {
description = "x86 emulation library";
license = licenses.bsd2;
homepage = https://github.com/wfeldt/libx86emu;
maintainers = with maintainers; [ bobvanderlinden ];
platforms = platforms.linux;
};
}