We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ae410 commit 6d92b46Copy full SHA for 6d92b46
nix/amazon-corretto-17.nix
@@ -34,13 +34,8 @@ pkgs.stdenv.mkDerivation rec {
34
# See: https://github.com/NixOS/patchelf/issues/10
35
dontStrip = 1;
36
37
- nativeBuildInputs = if (pkgs.stdenv.system == "x86_64-linux") then [
38
- pkgs.autoPatchelfHook
39
- pkgs.alsa-lib
40
- ] else
41
- [ ];
42
-
43
buildInputs = with pkgs; [
+ autoPatchelfHook
44
cpio
45
cups
46
file
@@ -70,6 +65,10 @@ pkgs.stdenv.mkDerivation rec {
70
65
zlib
71
66
];
72
67
68
+ # Arm doesn't have this, and because Corretto was built elsewhere, we need
69
+ # to change the interpreter: https://github.com/NixOS/patchelf
+ autoPatchelfIgnoreMissingDeps = [ "libasound.so.2" ];
+
73
buildPhase = ''
74
echo "Corretto is already built"
75
'';
0 commit comments