about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2023-11-26 14:38:26 +0100
committerGitHub <noreply@github.com>2023-11-26 14:38:26 +0100
commit46aafa963c5fdce1b282bab961f74736b934a8a6 (patch)
tree4e6d03bbc7c08077e05a917226d8910b92bd087f /pkgs/applications/networking/remote
parentfd44c780f0e79e69e6ccde779f9f19c89669f215 (diff)
parent14bdc832def8e70770d2dd406d29588604b200c2 (diff)
downloadnixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar.gz
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar.bz2
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar.lz
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar.xz
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.tar.zst
nixlib-46aafa963c5fdce1b282bab961f74736b934a8a6.zip
Merge pull request #269440 from iblech/citrix_reproducible
citrix_workspace: make reproducible
Diffstat (limited to 'pkgs/applications/networking/remote')
-rw-r--r--pkgs/applications/networking/remote/citrix-workspace/generic.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/remote/citrix-workspace/generic.nix b/pkgs/applications/networking/remote/citrix-workspace/generic.nix
index 052369bfcc92..03d56274bd79 100644
--- a/pkgs/applications/networking/remote/citrix-workspace/generic.nix
+++ b/pkgs/applications/networking/remote/citrix-workspace/generic.nix
@@ -4,6 +4,7 @@
 , gnome2, mesa, nss, nspr, gtk_engines, freetype, dconf, libpng12, libxml2
 , libjpeg, libredirect, tzdata, cacert, systemd, libcxxabi, libcxx, e2fsprogs, symlinkJoin
 , libpulseaudio, pcsclite, glib-networking, llvmPackages_12, opencv4
+, libfaketime
 
 , homepage, version, prefix, hash
 
@@ -59,6 +60,7 @@ stdenv.mkDerivation rec {
     more
     which
     wrapGAppsHook
+    libfaketime
   ];
 
   buildInputs = [
@@ -153,7 +155,8 @@ stdenv.mkDerivation rec {
 
     # Run upstream installer in the store-path.
     sed -i -e 's,^ANSWER="",ANSWER="$INSTALLER_YES",g' -e 's,/bin/true,true,g' ./${prefix}/hinst
-    ${stdenv.shell} ${prefix}/hinst CDROM "$(pwd)"
+    source_date=$(date --utc --date=@$SOURCE_DATE_EPOCH "+%F %T")
+    faketime -f "$source_date" ${stdenv.shell} ${prefix}/hinst CDROM "$(pwd)"
 
     if [ -f "$ICAInstDir/util/setlog" ]; then
       chmod +x "$ICAInstDir/util/setlog"