summaryrefslogtreecommitdiffstats
path: root/lib/nix-thin-edge-builder/flake.lock
diff options
context:
space:
mode:
authorMarcel Müller <m.mueller@ifm.com>2022-08-31 12:01:34 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-09-09 14:19:04 +0200
commit55c3f56dc53de2451718d3fdba16d2197b48b509 (patch)
tree49f6da7bd813fa3106177077d4def1a3ca17a47c /lib/nix-thin-edge-builder/flake.lock
parent4fa4856c5d21fdcfb37d5d6a0ca9853372f809f9 (diff)
Implement generating thin-edge binariespost-merge/nix-thin-edge-builder
The flake now exports a working `lib.mkThinEdge` function with which users can generate a working binary with only the components they wish to include. It works as follows: - It pulls in all the dependencies required for the thin-edge CLI - It then pulls in and patches the sources given. Any path references to tedge_api/lib are patched to their nix-store equivalencies. - The Cargo.lock is generated by downloading the cargo index and overriding its location to be effectively offline - A temporary Rust project is created, where all the different components are then referenced and pulled in. - This Rust project is then compiled using `crane` (currently a private fork with some hacks due to a deficiency in Nix relating to importing store paths in the TOML reader) - crane automatically copies the resulting binary to the output Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'lib/nix-thin-edge-builder/flake.lock')
-rw-r--r--lib/nix-thin-edge-builder/flake.lock17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/nix-thin-edge-builder/flake.lock b/lib/nix-thin-edge-builder/flake.lock
index 31cda59b..d181e45d 100644
--- a/lib/nix-thin-edge-builder/flake.lock
+++ b/lib/nix-thin-edge-builder/flake.lock
@@ -9,15 +9,16 @@
]
},
"locked": {
- "lastModified": 1660447363,
- "narHash": "sha256-Y1OtGWEb0bgFlp9YULaiYcgfEoHVIz1NuXwzlFZ/0HE=",
- "owner": "ipetkov",
+ "lastModified": 1661841194,
+ "narHash": "sha256-uTKGw9NVaJ/PlEoJzrnqYLU3ADOvGiXqeXr5pTX2WPE=",
+ "owner": "TheNeikos",
"repo": "crane",
- "rev": "5548a68f5d4d60a2315ab1232e6fba5528e71dc8",
+ "rev": "1bb502992605a5ffe5085987aa8924ae15c57349",
"type": "github"
},
"original": {
- "owner": "ipetkov",
+ "owner": "TheNeikos",
+ "ref": "fix/use_unsafe",
"repo": "crane",
"type": "github"
}
@@ -70,11 +71,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1661300288,
- "narHash": "sha256-R3FTmbhGhJ4bZZYFn/7KZjoFemhuSYCjPdPLzYSJKpI=",
+ "lastModified": 1661353537,
+ "narHash": "sha256-1E2IGPajOsrkR49mM5h55OtYnU0dGyre6gl60NXKITE=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "eb569cf5cc4ff90eb78896c04ee1fd377acc7e1b",
+ "rev": "0e304ff0d9db453a4b230e9386418fd974d5804a",
"type": "github"
},
"original": {