mirror of
https://github.com/nix-community/nix-init.git
synced 2024-10-05 20:38:53 +03:00
2201657246
Build dependencies are no longer cached, which slows down the build, but at least it fixes the build in CI. This simplifies the maintainance as it brings the build closer to the nixpkgs version
26 lines
489 B
Nix
26 lines
489 B
Nix
{
|
|
rustPlatform,
|
|
stdenv,
|
|
libiconv,
|
|
lib,
|
|
spdx-license-list-data,
|
|
}:
|
|
rustPlatform.buildRustPackage {
|
|
name = "license-store-cache";
|
|
|
|
src = ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
|
doCheck = false;
|
|
|
|
cargoBuildFlags = [ "-p license-store-cache" ];
|
|
|
|
postInstall = ''
|
|
cache=$(mktemp)
|
|
$out/bin/license-store-cache $cache ${spdx-license-list-data.json}/json/details
|
|
rm -rf $out
|
|
mv $cache $out
|
|
'';
|
|
}
|