nixpkgs/pkgs/development/libraries/libx86emu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
864 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, perl }:
2015-04-20 11:55:04 +00:00
stdenv.mkDerivation rec {
pname = "libx86emu";
2022-01-01 22:00:56 +00:00
version = "3.5";
2015-04-20 11:55:04 +00:00
2017-11-15 21:13:24 +00:00
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
2022-01-01 22:00:56 +00:00
sha256 = "sha256-dKT/Ey+vardXu/+coaC69TTUXjJLsLBKgCx9VY8f0oY=";
2015-04-20 11:55:04 +00:00
};
2017-11-15 21:13:24 +00:00
nativeBuildInputs = [ perl ];
2015-04-20 11:55:04 +00:00
2017-11-15 21:13:24 +00:00
postUnpack = "rm $sourceRoot/git2log";
2015-04-20 11:55:04 +00:00
patchPhase = ''
# VERSION is usually generated using Git
echo "${version}" > VERSION
2017-11-15 21:13:24 +00:00
substituteInPlace Makefile --replace "/usr" "/"
2015-04-20 11:55:04 +00:00
'';
2017-11-15 21:13:24 +00:00
buildFlags = [ "shared" ];
enableParallelBuilding = true;
2015-04-20 11:55:04 +00:00
2017-11-15 21:13:24 +00:00
installFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
2015-04-20 11:55:04 +00:00
meta = with lib; {
2015-04-20 11:55:04 +00:00
description = "x86 emulation library";
license = licenses.bsd2;
2020-03-02 14:18:08 +00:00
homepage = "https://github.com/wfeldt/libx86emu";
2015-04-20 11:55:04 +00:00
maintainers = with maintainers; [ bobvanderlinden ];
2017-04-08 02:59:41 +00:00
platforms = platforms.linux;
2015-04-20 11:55:04 +00:00
};
}