Skip to content

Commit

Permalink
Build dynamic binaries via nix
Browse files Browse the repository at this point in the history
Problem: Rust doesn't work well with musl, see
NixOS/nixpkgs#71195.

Solution: Provide dynamically linked binaries instead. This should be
fine since we don't use them in the releases and they're mostly used in
our internal infrastructure.
  • Loading branch information
rvem committed Dec 7, 2020
1 parent aa065d1 commit 4a07c98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Building and packaging tezos using nix

## Statically built binaries
## Dynamically built binaries

In order to build all binaries run:
```bash
Expand Down
3 changes: 1 addition & 2 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ let
pkgs = import ./build/pkgs.nix { };
source = (import ./nix/sources.nix).tezos;
protocols = import ./protocols.nix;
bin = pkgs.callPackage ./build/bin.nix { };
release-binaries = builtins.filter (elem: elem.name != "tezos-sandbox")
(import ./build/release-binaries.nix);
binaries = builtins.listToAttrs (map (meta: {
inherit (meta) name;
value = bin pkgs.pkgsMusl.ocamlPackages.${meta.name} // { inherit meta; };
value = pkgs.ocamlPackages.${meta.name} // { inherit meta; };
}) release-binaries);

# Bundle the contents of a package set together, leaving the original attrs intact
Expand Down

0 comments on commit 4a07c98

Please sign in to comment.