about summary refs log tree commit diff
path: root/pkgs/development/libraries/unicorn-emu
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2017-11-30 00:11:45 -0600
committerAustin Seipp <aseipp@pobox.com>2017-12-05 10:09:22 -0600
commit827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870 (patch)
tree90e83352c1308bb5186d5a22e01d09c4cfb46547 /pkgs/development/libraries/unicorn-emu
parent0b8417823db108a7e5186a595da667b9ce271511 (diff)
downloadnixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar.gz
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar.bz2
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar.lz
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar.xz
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.tar.zst
nixlib-827142a7fa9aeec6aec3d4ddd8cb7053c5f2d870.zip
nixpkgs: add unicorn-emulator library 1.0.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/libraries/unicorn-emu')
-rw-r--r--pkgs/development/libraries/unicorn-emu/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/libraries/unicorn-emu/default.nix b/pkgs/development/libraries/unicorn-emu/default.nix
new file mode 100644
index 000000000000..9f9d8e62de50
--- /dev/null
+++ b/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 ];
+  };
+}