mirror of
https://github.com/ryanccn/attic-action.git
synced 2024-11-19 22:16:35 +00:00
15 lines
416 B
Nix
15 lines
416 B
Nix
|
let
|
||
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||
|
pkgs = import (
|
||
|
fetchTarball {
|
||
|
url =
|
||
|
lock.nodes.nixpkgs.locked.url
|
||
|
or "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
|
||
|
sha256 = lock.nodes.nixpkgs.locked.narHash;
|
||
|
}
|
||
|
) {};
|
||
|
in
|
||
|
pkgs.runCommand "non-reproducible-test" {} ''
|
||
|
echo ${toString builtins.currentTime} > $out
|
||
|
''
|