stm32: use cargosha256.nix files

pull/30/head
Sebastien Bourdeauducq 2019-11-01 10:13:27 +08:00
parent 653cb7ce3b
commit c4835c6be7
1 changed files with 1 additions and 3 deletions

View File

@ -8,7 +8,7 @@ let
rustPlatform = pkgs.recurseIntoAttrs (pkgs.callPackage ./rustPlatform.nix { rustPlatform = pkgs.recurseIntoAttrs (pkgs.callPackage ./rustPlatform.nix {
inherit rustManifest; inherit rustManifest;
}); });
buildStm32Firmware = { name, src, cargoSha256 }: buildStm32Firmware = { name, src, cargoSha256 ? (import "${src}/cargosha256.nix") }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
inherit name; inherit name;
version = "0.0.0"; version = "0.0.0";
@ -32,11 +32,9 @@ in
stabilizer = buildStm32Firmware { stabilizer = buildStm32Firmware {
name = "stabilizer"; name = "stabilizer";
src = <stabilizerSrc>; src = <stabilizerSrc>;
cargoSha256 = "0mf9bcp88riaszpwv6adgpaxyngpacycwfix45fcgvr3lb7mnl22";
}; };
thermostat = buildStm32Firmware { thermostat = buildStm32Firmware {
name = "thermostat"; name = "thermostat";
src = <thermostatSrc>; src = <thermostatSrc>;
cargoSha256 = "08kk6ja9g4j4apa02n02gxpjm62s27aabx33lg0dmzxgr1v5xlr1";
}; };
} }