musl linux compilation working from now on
This commit is contained in:
@@ -157,9 +157,14 @@ bootstrapRustPlatform.buildRustPackage {
|
||||
SQLX_OFFLINE = "true";
|
||||
RUSTFLAGS = "-Ctarget-feature=+crt-static";
|
||||
|
||||
preBuild = ''
|
||||
cp -r ${source}/.sqlx .sqlx
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
file "$out/bin/server" | grep -q 'statically linked'
|
||||
test -x "$out/bin/server"
|
||||
! readelf -l "$out/bin/server" | grep -q 'Requesting program interpreter'
|
||||
! readelf -d "$out/bin/server" | grep -q '(NEEDED)'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user