diff options
author | Artturin <Artturin@artturin.com> | 2023-04-04 20:32:56 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-04-04 20:32:56 +0300 |
commit | 5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6 (patch) | |
tree | 02ed912a8c1a96d1188e61490582de6fb8c0d489 /pkgs/development/libraries/directfb | |
parent | 45dc78cb0a93fc84eaa1fea85bda28865eab1a44 (diff) | |
download | nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar.gz nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar.bz2 nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar.lz nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar.xz nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.tar.zst nixpkgs-5241ee98da2bf7d50f4e3c05742aa9d0bc41b3d6.zip |
directfb: make reproducible
Diffstat (limited to 'pkgs/development/libraries/directfb')
-rw-r--r-- | pkgs/development/libraries/directfb/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/directfb/default.nix b/pkgs/development/libraries/directfb/default.nix index 0f4e62789a2..6e2b28a4616 100644 --- a/pkgs/development/libraries/directfb/default.nix +++ b/pkgs/development/libraries/directfb/default.nix @@ -25,6 +25,14 @@ stdenv.mkDerivation rec { }) ]; + postPatch = '' + # https://github.com/deniskropp/DirectFB/blob/master/src/core/Makefile.am#L15 + # BUILDTIME is embedded in the result + # if switching to cmake then a similar substitution has to be done + substituteInPlace src/core/Makefile.am \ + --replace '`date -u "+%Y-%m-%d %H:%M"`' "`date -u \"+%Y-%m-%d %H:%M\" --date="@''${SOURCE_DATE_EPOCH}"`" + ''; + nativeBuildInputs = [ autoreconfHook perl pkg-config flux ]; buildInputs = [ zlib libjpeg freetype giflib libpng ] |