stm32: remove fetchcargo.nix #16

Merged
sb10q merged 2 commits from astro/nix-scripts:stm32-no-fetchcargo into master 2019-06-01 10:03:08 +08:00

You asked about this.

IIRC I copied fetchcargo.nix there so that we can use dependencies that have no stable release on the crates.io registry. Merge if that's fine for future stm32 development.

I didn't snoop around your local code but tested with the old repo:

diff --git stm32/default.nix stm32/default.nix
index 7d5d4f0..629e1d8 100644
--- stm32/default.nix
+++ stm32/default.nix
@@ -39,4 +39,14 @@ in
       src = /home/sb/thermostat;
       cargoSha256 = "1i9p5d5n01ajbp8lmavyway6vr1mmy107qnccff9glvr91rqx352";
     };
+    adc2tcp = buildStm32Firmware rec {
+      name = "adc2tcp";
+      src = pkgs.fetchFromGitHub {
+        owner = "m-labs";
+        repo = "adc2tcp";
+        rev = "91c27d24998488031d6484c5a46c659a4b2b42cf";
+        sha256 = "0xy3qmdnc3pgx5x8428k9hc37s9di89arr195xmig5rakaq2r0qg";
+      };
+      cargoSha256 = "1i9p5d5n01ajbp8lmavyway6vr1mmy107qnccff9glvr91rqx352";
+    };
   }
You asked about this. IIRC I copied `fetchcargo.nix` there so that we can use dependencies that have no stable release on the crates.io registry. Merge if that's fine for future stm32 development. I didn't snoop around your local code but tested with the old repo: ```diff diff --git stm32/default.nix stm32/default.nix index 7d5d4f0..629e1d8 100644 --- stm32/default.nix +++ stm32/default.nix @@ -39,4 +39,14 @@ in src = /home/sb/thermostat; cargoSha256 = "1i9p5d5n01ajbp8lmavyway6vr1mmy107qnccff9glvr91rqx352"; }; + adc2tcp = buildStm32Firmware rec { + name = "adc2tcp"; + src = pkgs.fetchFromGitHub { + owner = "m-labs"; + repo = "adc2tcp"; + rev = "91c27d24998488031d6484c5a46c659a4b2b42cf"; + sha256 = "0xy3qmdnc3pgx5x8428k9hc37s9di89arr195xmig5rakaq2r0qg"; + }; + cargoSha256 = "1i9p5d5n01ajbp8lmavyway6vr1mmy107qnccff9glvr91rqx352"; + }; } ```
sb10q closed this pull request 2019-06-01 10:03:08 +08:00
astro deleted branch stm32-no-fetchcargo 2019-06-03 06:33:14 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-scripts#16
There is no content yet.