Skip to content

Commit

Permalink
nixpkgs: add unicorn-emulator library 1.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Dec 5, 2017
1 parent 0b84178 commit 827142a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/libraries/unicorn-emu/default.nix
@@ -0,0 +1,26 @@
{ 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 ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -855,6 +855,7 @@ with pkgs;
traefik = callPackage ../servers/traefik { };

capstone = callPackage ../development/libraries/capstone { };
unicorn-emu = callPackage ../development/libraries/unicorn-emu { };

cataract = callPackage ../applications/misc/cataract { };
cataract-unstable = callPackage ../applications/misc/cataract/unstable.nix { };
Expand Down

0 comments on commit 827142a

Please sign in to comment.