diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-09-19 17:21:07 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-09-19 17:21:07 +0200 |
commit | b6b2a0aea99995d73f0faa6115fb33a137e57b23 (patch) | |
tree | c96050357c8d5028297dd1665b2ca8346a4f8d0b /tests/nixos/github-flakes.nix | |
parent | c6953d1ff62fb6dc4fbd89c03e7949c552c19382 (diff) |
Use "touch -h"
https://hydra.nixos.org/build/235888160
This is needed because Nixpkgs now contains dangling symlinks
(pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix).
Diffstat (limited to 'tests/nixos/github-flakes.nix')
-rw-r--r-- | tests/nixos/github-flakes.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nixos/github-flakes.nix b/tests/nixos/github-flakes.nix index e4d347691..6de702d17 100644 --- a/tests/nixos/github-flakes.nix +++ b/tests/nixos/github-flakes.nix @@ -82,7 +82,7 @@ let dir=NixOS-nixpkgs-${nixpkgs.shortRev} cp -prd ${nixpkgs} $dir # Set the correct timestamp in the tarball. - find $dir -print0 | xargs -0 touch -t ${builtins.substring 0 12 nixpkgs.lastModifiedDate}.${builtins.substring 12 2 nixpkgs.lastModifiedDate} -- + find $dir -print0 | xargs -0 touch -h -t ${builtins.substring 0 12 nixpkgs.lastModifiedDate}.${builtins.substring 12 2 nixpkgs.lastModifiedDate} -- tar cfz $out/archive/${nixpkgs.rev}.tar.gz $dir --hard-dereference ''; in |