mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
f4f18c3ddb
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
36 lines
865 B
Nix
36 lines
865 B
Nix
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libx86emu";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wfeldt";
|
|
repo = "libx86emu";
|
|
rev = version;
|
|
sha256 = "0r55ij8f5mab2kg6kvy5n2bw6avzp75nsxigbzy7dgik9zwsxvr4";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|