nix-init/license-store-cache.nix
Jörg Thalheim 2201657246 switch from fenix to buildRustPackage
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
2024-08-14 06:00:52 +02:00

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
'';
}