Skip to content

Commit

Permalink
libx86emu: 1.5 -> 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
c0bw3b authored and bjornfor committed Nov 15, 2017
1 parent 8b3293d commit 7a32e68
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions pkgs/development/libraries/libx86emu/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{ stdenv, fetchurl, perl }:
{ stdenv, fetchFromGitHub, perl }:

stdenv.mkDerivation rec {
name = "libx86emu-${version}";
version = "1.5";
version = "1.12";

src = fetchurl {
url = "https://github.com/wfeldt/libx86emu/archive/${version}.tar.gz";
sha256 = "1im6w6m0bl6ajynx4hc028lad8v10whv4y7w9zxndzh3j4mi3aa8";
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
sha256 = "0dlzvwdkk0vc6qf0a0zzbxki3pig1mda8p3fa54rxqaxkwp4mqr6";
};

buildInputs = [ perl ];
nativeBuildInputs = [ perl ];

postUnpack = "rm $sourceRoot/git2log";
patchPhase = ''
# VERSION is usually generated using Git
echo "${version}" > VERSION
sed -i 's|/usr/|/|g' Makefile
substituteInPlace Makefile --replace "/usr" "/"
'';

makeFlags = [ "shared" ];
buildFlags = [ "shared" ];
enableParallelBuilding = true;

installPhase = ''
make install DESTDIR=$out/ LIBDIR=lib
'';
installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];

meta = with stdenv.lib; {
description = "x86 emulation library";
Expand Down

0 comments on commit 7a32e68

Please sign in to comment.