Skip to content

Commit 2783e2b

Browse files
committed
make shebang in configure portable again
1 parent a565f7c commit 2783e2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
versionSuffix = ""; # obsolete
3737
src = self;
3838
preAutoconf = "echo ${version} > version";
39+
40+
# portable configure shouldn't have a shebang pointing to the nix store
41+
postConfigure = ''
42+
sed -i '1s|^.*$|#!/bin/sh|' ./configure
43+
'';
3944
postDist = ''
4045
cp README.md $out/
4146
echo "doc readme $out/README.md" >> $out/nix-support/hydra-build-products

0 commit comments

Comments
 (0)