diff options
author | Markus Kowalewski <markus.kowalewski@fysik.su.se> | 2019-04-04 14:51:33 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-09-15 18:35:22 +0200 |
commit | 2e363860c6cdc82e6ccb36ee342a81fd4aa029bf (patch) | |
tree | ccf296e10e41ed599260ee17f39a515310bb4141 /pkgs/development/libraries/openmpi | |
parent | c281e68e9f1dd8621447b6d6034bc49b0da6abb7 (diff) | |
download | nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar.gz nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar.bz2 nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar.lz nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar.xz nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.tar.zst nixlib-2e363860c6cdc82e6ccb36ee342a81fd4aa029bf.zip |
openmpi: make build reproducible
fix: * build and configure time stamps * build and configure user
Diffstat (limited to 'pkgs/development/libraries/openmpi')
-rw-r--r-- | pkgs/development/libraries/openmpi/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openmpi/default.nix b/pkgs/development/libraries/openmpi/default.nix index 06e4726054e9..974e98ad209e 100644 --- a/pkgs/development/libraries/openmpi/default.nix +++ b/pkgs/development/libraries/openmpi/default.nix @@ -30,6 +30,13 @@ in stdenv.mkDerivation rec { postPatch = '' patchShebangs ./ + + # Ensure build is reproducible + ts=`date -d @$SOURCE_DATE_EPOCH` + sed -i 's/OPAL_CONFIGURE_USER=.*/OPAL_CONFIGURE_USER="nixbld"/' configure + sed -i 's/OPAL_CONFIGURE_HOST=.*/OPAL_CONFIGURE_HOST="localhost"/' configure + sed -i "s/OPAL_CONFIGURE_DATE=.*/OPAL_CONFIGURE_DATE=\"$ts\"/" configure + find -name "Makefile.in" -exec sed -i "s/\`date\`/$ts/" \{} \; ''; buildInputs = with stdenv; [ gfortran zlib ] |