Skip to content

Commit 827142a

Browse files
committedDec 5, 2017
nixpkgs: add unicorn-emulator library 1.0.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
1 parent 0b84178 commit 827142a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ stdenv, fetchurl, bash, pkgconfig, python }:
2+
3+
stdenv.mkDerivation rec {
4+
name = "unicorn-emulator-${version}";
5+
version = "1.0.1";
6+
7+
src = fetchurl {
8+
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
9+
sha256 = "0z01apwmvhvdldm372ww9pjfn45awkw3m90c0h4v0nj0ihmlysis";
10+
};
11+
12+
configurePhase = '' patchShebangs make.sh '';
13+
buildPhase = '' ./make.sh '';
14+
installPhase = '' env PREFIX=$out ./make.sh install '';
15+
16+
nativeBuildInputs = [ pkgconfig python ];
17+
enableParallelBuilding = true;
18+
19+
meta = {
20+
description = "Lightweight multi-platform CPU emulator library";
21+
homepage = "http://www.unicorn-engine.org";
22+
license = stdenv.lib.licenses.bsd3;
23+
platforms = stdenv.lib.platforms.linux;
24+
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
25+
};
26+
}

‎pkgs/top-level/all-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ with pkgs;
855855
traefik = callPackage ../servers/traefik { };
856856

857857
capstone = callPackage ../development/libraries/capstone { };
858+
unicorn-emu = callPackage ../development/libraries/unicorn-emu { };
858859

859860
cataract = callPackage ../applications/misc/cataract { };
860861
cataract-unstable = callPackage ../applications/misc/cataract/unstable.nix { };

0 commit comments

Comments
 (0)
Please sign in to comment.