mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
26 lines
549 B
Nix
26 lines
549 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zycore";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zyantific";
|
|
repo = "zycore-c";
|
|
rev = "v${version}";
|
|
hash = "sha256-Kz51EIaw4RwrOKXhuDXAFieGF1mS+HL06gEuj+cVJmk=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
}
|