mirror of
https://github.com/nix-community/naersk
synced 2024-11-23 04:03:04 +00:00
Comment out buildPackageIncremental
This commit is contained in:
parent
0068df8a99
commit
6b41d97903
1 changed files with 22 additions and 21 deletions
43
default.nix
43
default.nix
|
@ -38,27 +38,28 @@ with rec
|
|||
};
|
||||
import ./build.nix src (defaultAttrs // attrs);
|
||||
|
||||
buildPackageIncremental = cargolock: name: version: src: attrs:
|
||||
with rec
|
||||
{ buildDependency = depName: depVersion:
|
||||
# Really this should be 'buildPackageIncremental' but that makes
|
||||
# Nix segfault
|
||||
buildPackage (libb.dummySrc depName depVersion)
|
||||
{ cargoBuild = "cargo build --release -p ${depName}:${depVersion} -j $NIX_BUILD_CORES";
|
||||
inherit (attrs) cargo;
|
||||
cargotomlPath = libb.writeTOML (libb.cargotomlFor depName depVersion);
|
||||
cargolockPath = libb.writeTOML (
|
||||
libb.cargolockFor cargolock depName depVersion
|
||||
);
|
||||
doCheck = false;
|
||||
};
|
||||
};
|
||||
buildPackage src (attrs //
|
||||
{
|
||||
builtDependencies = map (x: buildDependency x.name x.version)
|
||||
(libb.directDependencies cargolock name version) ;
|
||||
}
|
||||
);
|
||||
# XXX: not quite working yet
|
||||
# buildPackageIncremental = cargolock: name: version: src: attrs:
|
||||
# with rec
|
||||
# { buildDependency = depName: depVersion:
|
||||
# # Really this should be 'buildPackageIncremental' but that makes
|
||||
# # Nix segfault
|
||||
# buildPackage (libb.dummySrc depName depVersion)
|
||||
# { cargoBuild = "cargo build --release -p ${depName}:${depVersion} -j $NIX_BUILD_CORES";
|
||||
# inherit (attrs) cargo;
|
||||
# cargotomlPath = libb.writeTOML (libb.cargotomlFor depName depVersion);
|
||||
# cargolockPath = libb.writeTOML (
|
||||
# libb.cargolockFor cargolock depName depVersion
|
||||
# );
|
||||
# doCheck = false;
|
||||
# };
|
||||
# };
|
||||
# buildPackage src (attrs //
|
||||
# {
|
||||
# builtDependencies = map (x: buildDependency x.name x.version)
|
||||
# (libb.directDependencies cargolock name version) ;
|
||||
# }
|
||||
# );
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue