Comment out buildPackageIncremental

This commit is contained in:
Nicolas Mattia 2019-07-02 13:06:30 +02:00
parent 0068df8a99
commit 6b41d97903

View file

@ -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) ;
); # }
# );
}; };