summary refs log tree commit diff
path: root/pkgs/development/libraries/libx86emu
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2017-11-15 22:13:24 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-11-15 22:46:00 +0100
commit7a32e683938dda07590da2ddf23dae211b8b0c1d (patch)
treef2620baf9f7c1ed6df7987ca0167efef18a1cb92 /pkgs/development/libraries/libx86emu
parent8b3293d947b5bdf3628835b57403b3649db171a8 (diff)
downloadnixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar.gz
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar.bz2
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar.lz
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar.xz
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.tar.zst
nixpkgs-7a32e683938dda07590da2ddf23dae211b8b0c1d.zip
libx86emu: 1.5 -> 1.12
Diffstat (limited to 'pkgs/development/libraries/libx86emu')
-rw-r--r--pkgs/development/libraries/libx86emu/default.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/development/libraries/libx86emu/default.nix b/pkgs/development/libraries/libx86emu/default.nix
index ee32d9418dd..b745098bd64 100644
--- a/pkgs/development/libraries/libx86emu/default.nix
+++ b/pkgs/development/libraries/libx86emu/default.nix
@@ -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";