lol
at 18.09-beta 35 lines 875 B view raw
1{ stdenv, fetchFromGitHub, perl }: 2 3stdenv.mkDerivation rec { 4 name = "libx86emu-${version}"; 5 version = "2.0"; 6 7 src = fetchFromGitHub { 8 owner = "wfeldt"; 9 repo = "libx86emu"; 10 rev = version; 11 sha256 = "12rlkwnl5zgmmpm6n6cqnkyhkji4jw1d27y8x1krvlpi1z4bjidx"; 12 }; 13 14 nativeBuildInputs = [ perl ]; 15 16 postUnpack = "rm $sourceRoot/git2log"; 17 patchPhase = '' 18 # VERSION is usually generated using Git 19 echo "${version}" > VERSION 20 substituteInPlace Makefile --replace "/usr" "/" 21 ''; 22 23 buildFlags = [ "shared" ]; 24 enableParallelBuilding = true; 25 26 installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ]; 27 28 meta = with stdenv.lib; { 29 description = "x86 emulation library"; 30 license = licenses.bsd2; 31 homepage = https://github.com/wfeldt/libx86emu; 32 maintainers = with maintainers; [ bobvanderlinden ]; 33 platforms = platforms.linux; 34 }; 35}