Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / zydis / zycore.nix
blobc0ad668d1227aa6a01b0396280457769c3a886cc
1 { stdenv
2 , fetchFromGitHub
3 , cmake
4 }:
6 stdenv.mkDerivation rec {
7   pname = "zycore";
8   version = "1.4.1";
10   src = fetchFromGitHub {
11     owner = "zyantific";
12     repo = "zycore-c";
13     rev = "v${version}";
14     hash = "sha256-kplUgrYecymGxz92tEU6H+NNtcN/Ao/tmmqdVo2c7HA=";
15   };
17   nativeBuildInputs = [ cmake ];
19   # The absolute paths set by the Nix CMake build manager confuse
20   # Zycore's config generation (which appends them to the package path).
21   cmakeFlags = [
22     "-DCMAKE_INSTALL_LIBDIR=lib"
23     "-DCMAKE_INSTALL_INCLUDEDIR=include"
24   ];