nixpkgs-suyu/pkgs/development/libraries/libx86emu/default.nix
R. RyanTM 61bd4d7225 libx86emu: 1.14 -> 2.0 (#44757)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libx86emu/versions.
2018-08-09 00:21:40 +02:00

35 lines
875 B
Nix

{ stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
name = "libx86emu-${version}";
version = "2.0";
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
sha256 = "12rlkwnl5zgmmpm6n6cqnkyhkji4jw1d27y8x1krvlpi1z4bjidx";
};
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;
};
}