Skip to content

Commit 76395ad

Browse files
meta: add nix shell to build on Linux
As noted in [1] on Linux systems, it is not possible to build phoenixd due to a mismatch in the libc version. A possible solution is to use Nix and build phoenixd inside the shell with all the dependencies. This way, the host machine can use the binary directly without downgrading libc, which can be dangerous. [1] #1 (comment) Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent c7be837 commit 76395ad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.nix/shell.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
pkgs.mkShell {
4+
buildInputs = [
5+
pkgs.sqlite
6+
pkgs.curl
7+
pkgs.openjdk17
8+
9+
(pkgs.glibc.overrideAttrs (old: {
10+
version = "2.19";
11+
}))
12+
];
13+
}

0 commit comments

Comments
 (0)