2022-11-20 20:27:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zycore";
|
2024-02-10 17:41:09 +00:00
|
|
|
version = "1.5.0";
|
2022-11-20 20:27:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyantific";
|
|
|
|
repo = "zycore-c";
|
|
|
|
rev = "v${version}";
|
2024-02-10 17:41:09 +00:00
|
|
|
hash = "sha256-Kz51EIaw4RwrOKXhuDXAFieGF1mS+HL06gEuj+cVJmk=";
|
2022-11-20 20:27:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
}
|