Skip to content

Commit 7231719

Browse files
committed
Just disable fixup phase and do necessary patchShebangs manually
1 parent 3b33ed3 commit 7231719

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

flake.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@
5757
];
5858

5959
# The resources dir contains a bundled nix store template with its own
60-
# ELF binaries and symlinks pointing to store paths that don't exist on
61-
# the build machine. Skip automatic patching and do it manually below.
62-
dontAutoPatchelf = true;
63-
dontPatchELF = true;
64-
dontCheckForBrokenSymlinks = true;
60+
# ELF binaries, static binaries, and shebangs that must not be touched.
61+
# Disable the entire fixup phase and handle autoPatchelf manually.
62+
dontFixup = true;
6563

6664
installPhase = ''
6765
runHook preInstall
@@ -79,6 +77,7 @@
7977
rm -f $out/lib/codedown/chrome-sandbox
8078
8179
install -Dm755 ${./wrapper.sh} $out/bin/codedown
80+
patchShebangs $out/bin/codedown
8281
substituteInPlace $out/bin/codedown --replace-fail "@out@" "$out"
8382
8483
runHook postInstall

0 commit comments

Comments
 (0)