libx86emu: 1.5 -> 1.12

This commit is contained in:
Renaud 2017-11-15 22:13:24 +01:00 committed by Bjørn Forsman
parent 8b3293d947
commit 7a32e68393

View File

@ -1,27 +1,29 @@
{ stdenv, fetchurl, perl }: { stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libx86emu-${version}"; name = "libx86emu-${version}";
version = "1.5"; version = "1.12";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/wfeldt/libx86emu/archive/${version}.tar.gz"; owner = "wfeldt";
sha256 = "1im6w6m0bl6ajynx4hc028lad8v10whv4y7w9zxndzh3j4mi3aa8"; repo = "libx86emu";
rev = version;
sha256 = "0dlzvwdkk0vc6qf0a0zzbxki3pig1mda8p3fa54rxqaxkwp4mqr6";
}; };
buildInputs = [ perl ]; nativeBuildInputs = [ perl ];
postUnpack = "rm $sourceRoot/git2log";
patchPhase = '' patchPhase = ''
# VERSION is usually generated using Git # VERSION is usually generated using Git
echo "${version}" > VERSION echo "${version}" > VERSION
sed -i 's|/usr/|/|g' Makefile substituteInPlace Makefile --replace "/usr" "/"
''; '';
makeFlags = [ "shared" ]; buildFlags = [ "shared" ];
enableParallelBuilding = true;
installPhase = '' installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
make install DESTDIR=$out/ LIBDIR=lib
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "x86 emulation library"; description = "x86 emulation library";