python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / keystone / default.nix
blob0bb979f7a5503aeffbc8bd6e54c87d04bb3211e3
1 { lib, stdenv
2 , fetchFromGitHub
3 , pkg-config
4 , cmake
5 , python3
6 }:
8 stdenv.mkDerivation rec {
9   pname = "keystone";
10   version = "0.9.2";
12   src = fetchFromGitHub {
13     owner = "keystone-engine";
14     repo = pname;
15     rev = version;
16     sha256 = "020d1l1aqb82g36l8lyfn2j8c660mm6sh1nl4haiykwgdl9xnxfa";
17   };
19   cmakeFlags = [
20     "-DBUILD_SHARED_LIBS=ON"
21     "-DCMAKE_INSTALL_LIBDIR=lib"
22   ];
24   nativeBuildInputs = [
25     pkg-config
26     cmake
27     python3
28   ];
30   meta = with lib; {
31     description = "Lightweight multi-platform, multi-architecture assembler framework";
32     homepage = "https://www.keystone-engine.org";
33     license = licenses.gpl2Only;
34     maintainers = with maintainers; [ luc65r ];
35     mainProgram = "kstool";
36     platforms = platforms.unix;
37   };