Skip to content

Commit cbc46af

Browse files
committed
make shebang in configure portable again
1 parent f0a2180 commit cbc46af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flake.nix

+5
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)