nixpkgs/pkgs/development/libraries/libx86emu/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

36 lines
865 B
Nix

{ stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
pname = "libx86emu";
version = "2.3";
src = fetchFromGitHub {
owner = "wfeldt";
repo = "libx86emu";
rev = version;
sha256 = "158mrg9xb0sb4l3s60084j6i7nr90smpsks9f02gbssk495h2k8l";
};
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;
};
}