mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
3cea6f569e
Co-authored-by: pennae <82953136+pennae@users.noreply.github.com>
6 lines
304 B
Bash
6 lines
304 B
Bash
source common.sh
|
|
|
|
touch foo -t 202211111111
|
|
# We only check whether 2022-11-1* **:**:** is the last modified date since
|
|
# `lastModified` is transformed into UTC in `builtins.fetchTarball`.
|
|
[[ "$(nix eval --impure --raw --expr "(builtins.fetchTree \"path://$PWD/foo\").lastModifiedDate")" =~ 2022111.* ]]
|