forked from M-Labs/artiq
1
0
Fork 0

flake: use importCargoLock

This commit is contained in:
Sebastien Bourdeauducq 2022-04-24 14:02:59 +08:00
parent 50dbda4f43
commit 69b6426800
1 changed files with 5 additions and 4 deletions

View File

@ -253,10 +253,11 @@
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "artiq-board-${target}-${variant}"; name = "artiq-board-${target}-${variant}";
phases = [ "buildPhase" "checkPhase" "installPhase" ]; phases = [ "buildPhase" "checkPhase" "installPhase" ];
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.importCargoLock {
name = "artiq-firmware-cargo-deps"; lockFile = ./artiq/firmware/Cargo.lock;
src = "${self}/artiq/firmware"; outputHashes = {
sha256 = "sha256-YyycMsDzR+JRcMZJd6A/CRi2J9nKmaWY/KXUnAQaZ00="; "fringe-1.2.1" = "sha256-m4rzttWXRlwx53LWYpaKuU5AZe4GSkbjHS6oINt5d3Y=";
};
}; };
nativeBuildInputs = [ nativeBuildInputs = [
(pkgs.python3.withPackages(ps: [ ps.jsonschema migen misoc artiq])) (pkgs.python3.withPackages(ps: [ ps.jsonschema migen misoc artiq]))