Loading pkgs/by-name/ru/rustdesk-flutter/make-build-reproducible.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/libs/hbb_common/src/lib.rs b/libs/hbb_common/src/lib.rs index 15ef310..f3ac940 100644 --- a/libs/hbb_common/src/lib.rs +++ b/libs/hbb_common/src/lib.rs @@ -218,7 +218,7 @@ pub fn gen_version() { } } // generate build date - let build_date = format!("{}", chrono::Local::now().format("%Y-%m-%d %H:%M")); + let build_date = "1970-01-01 00:00"; file.write_all( format!("#[allow(dead_code)]\npub const BUILD_DATE: &str = \"{build_date}\";\n").as_bytes(), ) pkgs/by-name/ru/rustdesk-flutter/package.nix +2 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,8 @@ in flutter316.buildFlutterApplication rec { ''; patchFlags = [ "-p1" "-d" ".." ]; patches = [ ./make-build-reproducible.patch ]; postPatch = '' substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" "" # The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version Loading Loading
pkgs/by-name/ru/rustdesk-flutter/make-build-reproducible.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/libs/hbb_common/src/lib.rs b/libs/hbb_common/src/lib.rs index 15ef310..f3ac940 100644 --- a/libs/hbb_common/src/lib.rs +++ b/libs/hbb_common/src/lib.rs @@ -218,7 +218,7 @@ pub fn gen_version() { } } // generate build date - let build_date = format!("{}", chrono::Local::now().format("%Y-%m-%d %H:%M")); + let build_date = "1970-01-01 00:00"; file.write_all( format!("#[allow(dead_code)]\npub const BUILD_DATE: &str = \"{build_date}\";\n").as_bytes(), )
pkgs/by-name/ru/rustdesk-flutter/package.nix +2 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,8 @@ in flutter316.buildFlutterApplication rec { ''; patchFlags = [ "-p1" "-d" ".." ]; patches = [ ./make-build-reproducible.patch ]; postPatch = '' substituteInPlace ../Cargo.toml --replace-fail ", \"staticlib\", \"rlib\"" "" # The supplied Cargo.lock doesn't work with our fetcher so copy over the fixed version Loading