-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't build in NixOS 20.03 #5411
Comments
You need to change the dynamic linker in the prebuilt binary.
Additionally here is the current packaging effort. |
The following is my derivation for the prebuilt binary { autoPatchelfHook, fetchurl, stdenv, unzip }:
stdenv.mkDerivation rec {
name = "deno-bin-${version}";
version = "1.0.0";
src = fetchurl {
url = "https://github.com/denoland/deno/releases/download/v${version}/deno-x86_64-unknown-linux-gnu.zip";
sha256 = "0aknxy9z5cvw091yaw5yf2zynwzxs39ax3jkqdg10xw344jsyn31";
};
nativeBuildInputs = [
autoPatchelfHook
unzip
];
unpackPhase = ''
unzip $src
'';
installPhase = ''
install -m755 -D deno $out/bin/deno
'';
meta = with stdenv.lib; {
homepage = https://deno.land;
description = "A secure runtime for JavaScript and TypeScript";
platforms = platforms.linux;
};
} |
@Xe as @SyrupThinker has said already you needed to use the patchELF tool link When you've got a binary that looks like the right architecture according to |
Are you happy to close this issue or is there anything else we can help you with? |
I'm trying to play with deno but the binary doesn't work on NixOS:
LDD reports this:
And additionally when I try to build deno from source I get this rust error:
I'm not entirely sure what could be failing here, but whatever it is it's making this not work for me. I'm using NixOS 20.03:
Do you have any ideas as to why this is failing?
The text was updated successfully, but these errors were encountered: