mirror of
https://github.com/nix-community/naersk
synced 2024-11-26 21:40:18 +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);
|
import ./build.nix src (defaultAttrs // attrs);
|
||||||
|
|
||||||
buildPackageIncremental = cargolock: name: version: src: attrs:
|
# XXX: not quite working yet
|
||||||
with rec
|
# buildPackageIncremental = cargolock: name: version: src: attrs:
|
||||||
{ buildDependency = depName: depVersion:
|
# with rec
|
||||||
# Really this should be 'buildPackageIncremental' but that makes
|
# { buildDependency = depName: depVersion:
|
||||||
# Nix segfault
|
# # Really this should be 'buildPackageIncremental' but that makes
|
||||||
buildPackage (libb.dummySrc depName depVersion)
|
# # Nix segfault
|
||||||
{ cargoBuild = "cargo build --release -p ${depName}:${depVersion} -j $NIX_BUILD_CORES";
|
# buildPackage (libb.dummySrc depName depVersion)
|
||||||
inherit (attrs) cargo;
|
# { cargoBuild = "cargo build --release -p ${depName}:${depVersion} -j $NIX_BUILD_CORES";
|
||||||
cargotomlPath = libb.writeTOML (libb.cargotomlFor depName depVersion);
|
# inherit (attrs) cargo;
|
||||||
cargolockPath = libb.writeTOML (
|
# cargotomlPath = libb.writeTOML (libb.cargotomlFor depName depVersion);
|
||||||
libb.cargolockFor cargolock depName depVersion
|
# cargolockPath = libb.writeTOML (
|
||||||
);
|
# libb.cargolockFor cargolock depName depVersion
|
||||||
doCheck = false;
|
# );
|
||||||
};
|
# doCheck = false;
|
||||||
};
|
# };
|
||||||
buildPackage src (attrs //
|
# };
|
||||||
{
|
# buildPackage src (attrs //
|
||||||
builtDependencies = map (x: buildDependency x.name x.version)
|
# {
|
||||||
(libb.directDependencies cargolock name version) ;
|
# builtDependencies = map (x: buildDependency x.name x.version)
|
||||||
}
|
# (libb.directDependencies cargolock name version) ;
|
||||||
);
|
# }
|
||||||
|
# );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue