Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixpkgs: add unicorn-emulator library 1.0.1
Signed-off-by: Austin Seipp <aseipp@pobox.com>
- Loading branch information
1 parent
0b84178
commit 827142a
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters