Skip to content

Commit abfaee3

Browse files
authored
treewide: add preConfigure and postConfigure for configurePhase (#428560)
2 parents 3557543 + 3c0ff7e commit abfaee3

File tree

45 files changed

+180
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+180
-0
lines changed

pkgs/by-name/ab/abcde/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ stdenv.mkDerivation (finalAttrs: {
2727
# FIXME: This package does not support `distmp3', `eject', etc.
2828

2929
configurePhase = ''
30+
runHook preConfigure
31+
3032
sed -i "s|^[[:blank:]]*prefix *=.*$|prefix = $out|g ;
3133
s|^[[:blank:]]*etcdir *=.*$|etcdir = $out/etc|g ;
3234
s|^[[:blank:]]*INSTALL *=.*$|INSTALL = install -c|g" \
@@ -37,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: {
3739
3840
substituteInPlace "abcde" \
3941
--replace "/etc/abcde.conf" "$out/etc/abcde.conf"
42+
43+
runHook postConfigure
4044
'';
4145

4246
nativeBuildInputs = [ makeWrapper ];

pkgs/by-name/ai/aiger/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ stdenv.mkDerivation rec {
4646
};
4747

4848
configurePhase = ''
49+
runHook preConfigure
50+
4951
# Set up picosat, so we can build 'aigbmc'
5052
mkdir ../picosat
5153
ln -s ${picosat}/include/picosat/picosat.h ../picosat/picosat.h
5254
ln -s ${picosat}/lib/picosat.o ../picosat/picosat.o
5355
ln -s ${picosat}/share/picosat.version ../picosat/VERSION
5456
./configure.sh
57+
58+
runHook postConfigure
5559
'';
5660

5761
postBuild = ''

pkgs/by-name/ca/caps/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ stdenv.mkDerivation rec {
1212
};
1313

1414
configurePhase = ''
15+
runHook preConfigure
16+
1517
echo "PREFIX = $out" > defines.make
18+
19+
runHook postConfigure
1620
'';
1721

1822
meta = {

pkgs/by-name/cg/cgui/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ stdenv.mkDerivation rec {
2525
];
2626

2727
configurePhase = ''
28+
runHook preConfigure
29+
2830
sh fix.sh unix
31+
32+
runHook postConfigure
2933
'';
3034

3135
hardeningDisable = [ "format" ];

pkgs/by-name/cn/cnijfilter_4_00/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ stdenv.mkDerivation {
8787
'';
8888

8989
configurePhase = ''
90+
runHook preConfigure
91+
9092
cd libs
9193
./autogen.sh --prefix=$out
9294
@@ -127,6 +129,8 @@ stdenv.mkDerivation {
127129
128130
sed -e "s,cnijlgmon2_LDADD =,cnijlgmon2_LDADD = -L../../com/libs_bin${arch}," \
129131
-i lgmon2/src/Makefile.am || die
132+
133+
runHook postConfigure
130134
'';
131135

132136
preInstall = ''

pkgs/by-name/da/daemontools/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ stdenv.mkDerivation rec {
3838
nativeBuildInputs = [ installShellFiles ];
3939

4040
configurePhase = ''
41+
runHook preConfigure
42+
4143
cd daemontools-${version}
4244
4345
sed -i -e '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc
@@ -48,6 +50,8 @@ stdenv.mkDerivation rec {
4850
sed -i -e "s_^PATH=.*_PATH=$src/daemontools-${version}/compile:''${PATH}_" src/rts.tests
4951
5052
cat ${glibc.dev}/include/errno.h
53+
54+
runHook postConfigure
5155
'';
5256

5357
buildPhase = ''

pkgs/by-name/dl/dl-poly-classic-mpi/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ stdenv.mkDerivation {
2020
buildInputs = [ mpi ];
2121

2222
configurePhase = ''
23+
runHook preConfigure
24+
2325
cd source
2426
cp -v ../build/MakePAR Makefile
27+
28+
runHook postConfigure
2529
'';
2630

2731
# https://gitlab.com/DL_POLY_Classic/dl_poly/-/blob/master/README

pkgs/by-name/do/dorion/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
122122
'';
123123

124124
configurePhase = ''
125+
runHook preConfigure
126+
125127
cmakeConfigurePhase
126128
pnpmConfigHook
129+
130+
runHook postConfigure
127131
'';
128132

129133
buildPhase = ''

pkgs/by-name/ec/ecdsatool/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ stdenv.mkDerivation {
1616
};
1717

1818
configurePhase = ''
19+
runHook preConfigure
20+
1921
./autogen.sh
2022
./configure --prefix=$out
23+
24+
runHook postConfigure
2125
'';
2226

2327
patches = [

pkgs/by-name/ed/edid-generator/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ stdenv.mkDerivation {
4848
modelines = "";
4949

5050
configurePhase = ''
51+
runHook preConfigure
52+
5153
test "$clean" != 1 || rm *x*.S
5254
./modeline2edid - <"$modelinesPath"
5355
@@ -56,6 +58,8 @@ stdenv.mkDerivation {
5658
cat "$file"
5759
done
5860
make clean
61+
62+
runHook postConfigure
5963
'';
6064

6165
buildPhase = ''

0 commit comments

Comments
 (0)