feat: rcmem
This commit is contained in:
@@ -10,12 +10,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "c-libs";
|
||||
version = "0.1.0";
|
||||
src = ../.;
|
||||
outputs = ["out" "dev"];
|
||||
nativeBuildInputs = [cmake] ++ lib.optional finalAttrs.doCheck pkg-config;
|
||||
buildInputs = [] ++ lib.optional finalAttrs.doCheck criterion;
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_TESTING" finalAttrs.doCheck)
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" finalAttrs.enableShared or false)
|
||||
];
|
||||
|
||||
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
||||
|
||||
Reference in New Issue
Block a user