nixpkgs/pkgs/development/libraries/unicorn-emu/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
803 B
Nix

{ stdenv, fetchurl, pkgconfig, python }:
stdenv.mkDerivation rec {
pname = "unicorn-emulator";
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 ];
};
}