2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-04 03:53:56 +00:00
nixpkgs/pkgs/development/libraries/zydis/zycore.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
549 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "zycore";
version = "1.4.1";
src = fetchFromGitHub {
owner = "zyantific";
repo = "zycore-c";
rev = "v${version}";
hash = "sha256-kplUgrYecymGxz92tEU6H+NNtcN/Ao/tmmqdVo2c7HA=";
};
nativeBuildInputs = [ cmake ];
# The absolute paths set by the Nix CMake build manager confuse
# Zycore's config generation (which appends them to the package path).
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
];
}