mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
827142a7fa
Signed-off-by: Austin Seipp <aseipp@pobox.com>
27 lines
822 B
Nix
27 lines
822 B
Nix
{ stdenv, fetchurl, bash, pkgconfig, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unicorn-emulator-${version}";
|
|
version = "1.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
|
|
sha256 = "0z01apwmvhvdldm372ww9pjfn45awkw3m90c0h4v0nj0ihmlysis";
|
|
};
|
|
|
|
configurePhase = '' patchShebangs make.sh '';
|
|
buildPhase = '' ./make.sh '';
|
|
installPhase = '' env PREFIX=$out ./make.sh install '';
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Lightweight multi-platform CPU emulator library";
|
|
homepage = "http://www.unicorn-engine.org";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|